ring.websocket.protocols

(source)

For more info about this library see:

https://github.com/ring-clojure/ring/wiki
Public Variable Short Description
-close (clj) Closes the socket with an integer status code, and a String reason.
-open? (clj) Returns true if the socket is open; false otherwise.
-ping (clj) Sends a ping message to the client with a ByteBuffer of extra data.
-pong (clj) Sends an unsolicited pong message to the client, with a ByteBuffer of extra data.
-send (clj) Sends a String or ByteBuffer to the client via the websocket.
-send-async (clj) Sends a String or ByteBuffer to the client via the websocket.
AsyncSocket (clj) A protocol for sending data asynchronously via websocket.
Listener (clj) A protocol for handling websocket events.
PingListener (clj) A protocol for handling ping websocket events.
Socket (clj) A protocol for sending data via websocket.
on-close (clj) Called when the websocket is closed, along with an integer code and a plaintext string reason for being closed.
on-error (clj) Called when a Throwable error is thrown.
on-message (clj) Called when a message is received.
on-open (clj) Called when the websocket is opened.
on-ping (clj) Called when a ping is received from the client.
on-pong (clj) Called when a pong is received in response to an earlier ping.