wsSendMessage

Sends messages to a specific client that invokes the method. This can be included as a part of the function that is called by the invoke WebSocket JavaScript method.

wsSendMessage(message); → returns void

This function requires Adobe ColdFusion 10 and up.  Not supported on Lucee, etc.

Argument Reference

message any
Required

The message object. This can be of type Any.

Examples
Sample code invoking the wsSendMessage function

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

Fork me on GitHub