Cycle.js WebSocket Driver
A Cycle.js Driver for using WebSockets in the browser.
npm install --save cycle-ws-driver
Usage
Basic setup
;; { ...} const drivers = ws: Cycle;
Normal usecase (with RxJS)
{ const messages$ = ws // messages$: ---[]--['message 1']--['message 1', 'message 2']--> const formSubmit$ = DOM const messageInput$ = DOM const sendMessage$ = formSubmit$ const vtree$ = messages$ return DOM: vtree$ ws: sendMessage$ }