Changes

Jump to navigation Jump to search
872 bytes removed ,  14:27, 4 August 2018
no edit summary
| '''Summary'''
|Returns the ID of the current WebSocket connection.
|}
 
==websocket:get==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|websocket:get|$key as xs:string|xs:string}}
|-
| '''Summary'''
|Returns the WebSocket attribute with the key <code>$key</code>. If the <code>$id</code> parameter is set, it returns the attribute of a specific User with the ID <code>$id</code>
|}
 
==websocket:set==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|websocket:set|$key as xs:string, $value as xs:string|empty-sequence()}}
|-
| '''Summary'''
|Sets a WebSocket attribute with the key <code>$key</code> and the value <code>$value</code>. If the <code>$id</code> parameter is set, the attribute of a specific user with the ID <code>$id</code> is set.
|}
 
==websocket:delete==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|websocket:delete|$key as xs:string|empty-sequence()}}
|-
| '''Summary'''
|Removes a session attribute from the current WebSocketClient. If the <code>$id</code> parameter is set, the attribute of a specific user with the ID <code>$id</code> will be deleted.
|}
|Returns the path of the current WebSocketClient. If the <code>$id</code> parameter is set, the path of a specific user with the ID <code>$id</code> will be returned.
|}
 
=Usage Tips=
* <code>websocket:id</code> returns your current session id. You can use all [[Session Module]] and [[Sessions Module]] functions within the websocket context.
administrator, editor
23

edits

Navigation menu