bennadel / Ignoring-Loopback-Events-With-Pusher

A small demo that looks at ignoring loopback WebSocket events with Pusher in Lucee CFML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Read my blog post relating to this project. →

About

A small demo that looks at ignoring loopback WebSocket events with Pusher in Lucee CFML


Languages

Language:ColdFusion 100.0%