Functions to manage the lifecycle of a websocket session
Functions to manage the lifecycle of a websocket session
(close! this)
(close! this code reason)
Close the websocket session.
Close the websocket session.
(send! this msg)
Send a message to the websocket client
Send a message to the websocket client
(connected? this)
Returns a boolean indicating if the session is currently connected
Returns a boolean indicating if the session is currently connected
(idle-timeout! this ms)
Set the idle timeout for the session, in milliseconds
Set the idle timeout for the session, in milliseconds
(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-addr this)
Find the remote address of a websocket client
Find the remote address of a websocket client
(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? this)
Returns a boolean indicating if the session was established by wss://
Returns a boolean indicating if the session was established by wss://
(disconnect this)
Disconnect the websocket connection
Disconnect the websocket connection
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close