Back
All Commands
All Other
Commands
WEBSOCKET_SEND
This will send a Web Socket message to all currently connected specified users.
Use the following JavaScript to act on the received message:
You do not need the {WEBSOCKET_REQ()} command on a page to send messages using the {WEBSOCKET_SEND} command.
You do need the {WEBSOCKET_REQ()} command on a page when using the JavaScript Function udb.webSocket.sendMessage(ug_list, type, obj_id, title, message) to send a message from the client.
You can also send messages with JavaScript.
| Number | Name | Default | Type | Description |
|---|---|---|---|---|
| 1 | ug_list | String | A comma separated list of User IDs or Group Names you want to send the message to. e.g. [9876, 5432] or [Group1, Accounts] |
|
| 2 | type | console.log | String | The type of message to be sent. This is simply a way of categorising the message so the receiving code knows what to do with it. There are some reserved types that are handled automatically by the code, and can be used for testing.
|
| 3 | obj_id | 0 | Integer | An object to send to the recipients |
| 4 | title | String | An optional message title to send | |
| 5 | message | String | A message to send to the recipients |
AJAX Commands
AJAX_EMBEDDISPLAY Commands
ACCORDIONAJAX_EMBED
BASIC_DISP
BLINK
CALENDAR
COMMA
COMMENT
DQUOTE
EDITABLE
FAVICON
FIRST_LINE
FORMAT_DATE
GLINK
GLINK_OFF
GLINK_ON
HTML_SPECIAL_CHARS
HTML_TO_TEXT
IMPORT_FORM
LCASE
MAIN_PAGE
NALB
NOTIFY
OBJ_COLOR
PAGE_JS
PAGE_JS2
PAGE_TITLE
PANEL
PANEL_CLOSED
PANEL_OPEN
PILLS
PLURAL
PRINT_BUTTON
QR_CODE
REGISTER
REG_REP
RENDER_TREE
REPLACE
RETURN_TIDY
SEQN
SET_PAGE_TITLE
SIDEBAR_LEFT/RIGHT
SLIDES
SYMBOL
TEL_LINK
TRACKING_IMAGE
TRIM
WRAP
HTML Commands
BLINKEMBED
FAVICON
HTML_SPECIAL_CHARS
HTML_TO_TEXT
LCASE
META_TAG
NALB
NOTIFY
PAGE_CONTENT
PAGE_CSS
PAGE_FAVICON
PAGE_JS
PAGE_JS2
PAGE_MODE
PAGE_TITLE
PANEL
PANEL_CLOSED
PANEL_OPEN
PILLS
SET_PAGE_TITLE
TEL_LINK