6 library(http/hub): Manage a hub for websockets
AllApplicationManualNameSummaryHelp

  • 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)).
Source[semidet]hub_send(+ClientId, +Message)
Send message to the indicated ClientId. Fails silently if ClientId does not exist.
Message is either a single message (as accepted by ws_send/2) or a list of such messages.