wsUnsubscribe

Accepted as a no-op for forward compatibility. In RustCFML, connections leave rooms through server-side socket.leave(), and the engine removes a connection from every room automatically on disconnect; there is no server-side unsubscribe to call. Feature-detecting code that calls wsUnsubscribe() will not error.

wsUnsubscribe() → returns void

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Compatibility

RustCFML:

No-op; room leaves are server-side via socket.leave() and are automatic on disconnect.

Links more information about wsUnsubscribe

Examples
Sample code invoking the wsUnsubscribe function

Calls to wsUnsubscribe() are accepted and do nothing; leaves are server-side and automatic on disconnect.

wsUnsubscribe();   // no-op

Expected Result: Returns null (void).

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub