cfwebsocket
10

Overview ColdFusion Open BlueDragon Lucee

Creates websocket connection between the browser and the ColdFusion Server

Attributes

Name Required Type Default Description
10
name Yes String Variable name representing the websocket object
10
onclose No String JavaScript function handler name that is called when websocket connection is closed
10
onerror No String JavaScript function handler name that is called when an error occurs in websocket communication
10
onmessage Yes String JavaScript function handler name to handle websocket incoming messages at the client
10
onopen No String JavaScript function handler name that is called when websocket connection is opened
11
secure No Boolean false To enable websocket communication over SSL
10
subscribeto No String Websocket channel name to which client subscribes
10
usecfauth No Boolean true If yes, ColdFusion Administrator credentials are used for websocket authentication. The default value is true.