Liking cljdoc? Tell your friends :D

ring.websocket.transit


websocket-transit-responseclj

(websocket-transit-response response)

Wraps a Ring WebSocket response such that incoming and outgoing messages are formatted using Transit. See: wrap-websocket-transit.

Wraps a Ring WebSocket response such that incoming and outgoing messages
are formatted using Transit. See: wrap-websocket-transit.
sourceraw docstring

wrap-websocket-transitclj

(wrap-websocket-transit handler)

Ring middleware that translates incoming and outgoing WebSocket messages using the Transit data format. The ring.websocket.protocols/on-message method will receive data decoded from Transit, and the ring.websocket/send function will send data encoded into Transit.

Ring middleware that translates incoming and outgoing WebSocket messages
using the Transit data format. The ring.websocket.protocols/on-message
method will receive data decoded from Transit, and the ring.websocket/send
function will send data encoded into Transit.
sourceraw docstring

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

× close