Liking cljdoc? Tell your friends :D

gniazdo.core


clientclj

(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.
sourceraw docstring

closeclj

(close this)

Closes the WebSocket.

Closes the WebSocket.
sourceraw docstring

connectclj

(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).
sourceraw docstring

send-msgclj

(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.
sourceraw docstring

Sendablecljprotocol

send-to-endpointclj

(send-to-endpoint this e)

Sends an entity to a given WebSocket endpoint.

Sends an entity to a given WebSocket endpoint.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close