ring.websocket

(source)
Protocols and utility functions for websocket support.

For more info about this library see:

https://github.com/ring-clojure/ring/wiki
Public Variable Short Description
close (clj) Closes the websocket, with an optional custom integer status code and reason string.
open? (clj) Returns true if the Socket is open, false otherwise.
ping (clj) Sends a ping message via a websocket, with an optional byte array or ByteBuffer that may contain custom session data.
pong (clj) Sends an unsolicited pong message via a websocket, with an optional byte array or ByteBuffer that may contain custom session data.
request-protocols (clj) Returns a collection of websocket subprotocols from a request map.
send (clj) Sends text or binary data via a websocket, either synchronously or asynchronously with callback functions.
upgrade-request? (clj) Returns true if the request map is a websocket upgrade request.
websocket-response? (clj) Returns true if the response contains a websocket listener.