7 library(http/hub): Manage a hub for websockets
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog HTTP support
library(http/hub): Manage a hub for websockets
hub_create/3
current_hub/2
hub_add/3
hub_member/2
hub_send/2
hub_broadcast/2
hub_broadcast/3
Availability:
:- use_module(
library(http/hub)
).
[det]
hub_add
(
+Hub, +WebSocket, ?Id
)
Add a
WebSocket
to the hub.
Id
is used to identify this user. It may be provided (as a ground term) or is generated as a UUID.