const pusher = new Pusher('app-key-goes-here', { cluster: 'us2' }); //This is where Pusher sets up the WebSocket in the background and subscribes to the Pusher channel called `event-channel-goes-here` //By itself, this doesn't listen to any events on this channel. You need the `channel.bind(...)` line below. const channel = pusher.subscribe('event-channel-goes-here'); //This is the exact same thing as an EventListener. The syntax is even similar by design so that it looks familiar. //Inside the `function(data) { ... }`, you can do any Retool things that you would like to do in response to Pusher events. //In this example, I am triggering a simple query, which will refresh the data inside a table. channel.bind('event-type-goes-here', function(data) { get_table_data.trigger() });