6 library(http/websocket): WebSocket support
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog HTTP support
library(http/websocket): WebSocket support
http_open_websocket/3
http_upgrade_to_websocket/3
ws_send/2
ws_receive/2
ws_receive/3
ws_close/3
ws_open/3
ws_property/2
ws_mask/1
Availability:
:- use_module(
library(http/websocket)
).
[nondet]
ws_property
(
+WebSocket, ?Property
)
True if
Property
is a property
WebSocket
. Defined properties are:
subprotocol
(
Protocol
)
Protocol
is the negotiated subprotocol. This is typically set as a property of the websocket by
ws_open/3
.