Custom Tag: cf_workcube_websocket


Purpose of Usage

Facilitating data exchange over socket channels defined at the application level (application.cfc), managing events after sending or receiving data using the javascript functions of cfwebsocket already on Coldfusion, optionally pushing when the data sent over the channel reaches the other party. It is used to create notifications (notifications).

Parameter

Attributes
Clarification
Type
Required

socketItems

It requests the data to be sent over the socket in struct format. (The Struct model is described in detail below.)

struct
E

SocketItems struct model

channel : 'Channel name (must be defined in application.cfc)',
data : {
       type : "The name to be used for the condition range you will manage in the handlerMessage function in cf_workcube_websocket.",
       action_page : "You can send any index name and value.
        (You can send it in the desired format and with the name you want. Here, action_page is used as an example)",
       notification_settings : {
              status : (Gets true or false.)
              It is sent true if you want to create a notification when your transmission over the socket reaches the other party, false if not. ),
              title : "The message of the notification you will create",
              content : "The content of the notification you will create",
              redirecturl : "The link address that will be redirected after clicking on the notification you will create"
       }
}

Example Usage

CustomTags\workcube_process.cfm

      

Feedback

Did you find this content helpful?