Liking cljdoc? Tell your friends :D
Clojure only.

puppetlabs.experimental.websockets.client


WebSocketProtocolcljprotocol

Functions to manage the lifecycle of a websocket session

Functions to manage the lifecycle of a websocket session

close!clj

(close! this)
(close! this code reason)

Close the websocket session.

Close the websocket session.

send!clj

(send! this msg)

Send a message to the websocket client

Send a message to the websocket client

connected?clj

(connected? this)

Returns a boolean indicating if the session is currently connected

Returns a boolean indicating if the session is currently connected

idle-timeout!clj

(idle-timeout! this ms)

Set the idle timeout for the session, in milliseconds

Set the idle timeout for the session, in milliseconds

peer-certsclj

(peer-certs this)

Returns an array of X509Certs presented by the ssl peer, if any

Returns an array of X509Certs presented by the ssl peer, if any

remote-addrclj

(remote-addr this)

Find the remote address of a websocket client

Find the remote address of a websocket client

request-pathclj

(request-path this)

Returns the URI path used in the websocket upgrade request to the server

Returns the URI path used in the websocket upgrade request to the server

ssl?clj

(ssl? this)

Returns a boolean indicating if the session was established by wss://

Returns a boolean indicating if the session was established by wss://

disconnectclj

(disconnect this)

Disconnect the websocket connection

Disconnect the websocket connection
sourceraw docstring

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

× close