WebSocket.get

Gets the context data of the web socket.

class WebSocket
final
T
get
(
T
)
(
string name
,
lazy T defaultValue = T.init
)

Parameters

name string

The name of the context data.

Return Value

Type: T

The context data if found, defaultValue otherwise.

Meta