Liking cljdoc? Tell your friends :D

fulcro.websockets.networking

DEPRECATED: Do not use this namespace for new projects.

DEPRECATED: Do not use this namespace for new projects.
raw docstring

ChannelClientcljs


ChannelSocketcljsprotocol

reconnectcljs

(reconnect this)

Reconnect the socket

Reconnect the socket

install-push-handlerscljs

(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-clientcljs

(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 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,
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,
raw docstring

message-receivedcljsmultimethod

Multimethod to handle Sente event-msgs

Multimethod to handle Sente `event-msg`s
raw docstring

push-receivedcljsmultimethod

Multimethod to handle push events

Multimethod to handle push events
raw docstring

router_cljs


start-router!cljs

(start-router! ch-recv msg-handler)

stop-router!cljs

(stop-router!)

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

× close