DEPRECATED: Do not use this namespace for new projects.
DEPRECATED: Do not use this namespace for new projects.
(reconnect this)
Reconnect the socket
Reconnect the socket
(install-push-handlers this app)
Install the push handlers. Must be called in started callback, passed the websocket network object, and the completed app
Install the push handlers. Must be called in started callback, passed the websocket network object, and the completed app
(make-channel-client url
&
{:keys [global-error-callback host req-params
state-callback transit-handlers]})
DEPRECATED! Do not use for new code. See websockets.cljc.
Creates a client side networking component for use in place of the default fulcro networking component.
Params:
url
- The url to handle websocket traffic on. (ex. "\chsk")host
(Optional) - server that is hosting the websocket serverglobal-error-callback
(Optional) - Analagous to the global error callback in fulcro client.req-params
(Optional) - Params to be attached to the initial request.state-callback
(Optional) - Callback that runs when the websocket state of the websocket changes.
The function takes an old state parameter and a new state parameter (arity 2 function).
state-callback
can be either a function, or an atom containing a function.transit-handlers
(Optional) - Expects a map with :read
and/or :write
key containing a map of transit handlers,DEPRECATED! Do not use for new code. See websockets.cljc. Creates a client side networking component for use in place of the default fulcro networking component. Params: - `url` - The url to handle websocket traffic on. (ex. "\chsk") - `host` (Optional) - server that is hosting the websocket server - `global-error-callback` (Optional) - Analagous to the global error callback in fulcro client. - `req-params` (Optional) - Params to be attached to the initial request. - `state-callback` (Optional) - Callback that runs when the websocket state of the websocket changes. The function takes an old state parameter and a new state parameter (arity 2 function). `state-callback` can be either a function, or an atom containing a function. - `transit-handlers` (Optional) - Expects a map with `:read` and/or `:write` key containing a map of transit handlers,
Multimethod to handle Sente event-msg
s
Multimethod to handle Sente `event-msg`s
Multimethod to handle push events
Multimethod to handle push events
(start-router! ch-recv msg-handler)
(stop-router!)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close