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

source

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
source

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,
sourceraw docstring

message-receivedcljsmultimethod

Multimethod to handle Sente event-msgs

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

push-receivedcljsmultimethod

Multimethod to handle push events

Multimethod to handle push events
sourceraw docstring

router_cljs

source

start-router!cljs

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

stop-router!cljs

(stop-router!)
source

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

× close