Ignoring Loopback WebSocket Events From Pusher In Lucee CFML 5.3.8.206
by Ben Nadel
Historically, one issue that I've wrestled with when using Pusher for WebSocket events in my ColdFusion application is the fact that events that one browser triggers are often published back to that same browser. This often leads to subsequent and unnecessary data-loading in the client-side Single-Page Application (SPA). As such, I want to explore the use of a round-trip browser UUID that is injected into each API call as a means to help the origin browser ignore loopback events. This way, I can optimistically respond to events locally and then ignore those same events when they come back over the Pusher WebSocket.