(client)
(client uri)
Create a new instance of WebSocketClient
. If the optionally supplied URI
is representing a secure WebSocket endpoint ("wss://...") an SSL-capable
instance will be returned.
Create a new instance of `WebSocketClient`. If the optionally supplied URI is representing a secure WebSocket endpoint ("wss://...") an SSL-capable instance will be returned.
(connect uri
&
{:keys [on-connect on-receive on-binary on-error on-close headers
client subprotocols extensions]
:as opts})
Connects to a WebSocket at a given URI (e.g. ws://example.org:1234/socket).
Connects to a WebSocket at a given URI (e.g. ws://example.org:1234/socket).
(send-msg this msg)
Sends a message (implementing gniazdo.core/Sendable
) to the given WebSocket.
Sends a message (implementing `gniazdo.core/Sendable`) to the given WebSocket.
(send-to-endpoint this e)
Sends an entity to a given WebSocket endpoint.
Sends an entity to a given WebSocket endpoint.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close