Qore WebSocketClient Module Reference
1.8
|
The WebSocketClient module provides client support for RFC-6455 based WebSocket protocol implementations in Qore.
To use this module, use "%requires WebSocketClient"
in your code.
This module automatically uses the WebSocketUtil module for encoding and decoding web socket messages.
All the public symbols in the module are defined in the WebSocketClient namespace.
Currently the module provides the following classes:
Example
WebSocketConnectionObject::getConstructorInfo()
and WebSocketConnectionObject::getConstructorInfoImpl()
methods (issue 3696)WebSocketConnectionObject::getConstructorInfo()
method to allow connections to be created dynamically, potentially in another process from a network call (removed in WebSocketClient 1.8) (issue 2628)PING
messages to be customized (issue 2887)PONG
message to be sent as a unidirectional keep-alive message from the client to the server (issue 2566)Sec-WebSocket-Accept
response header according to RFC6455 (issue 2062)yield
option in the constructorSOCKET-NOT-OPEN
errors when closing (server already closed the connection)"WebSocketClient: "
to log messages