This package has been deprecated

Author message:

abandoned and unmaintained

cycle-sockets-driver

1.0.1 • Public • Published

cycle-sockets-driver

Socket.io driver for Cycle.js with support for multiple sockets

installation

Install with NPM

npm install --save cycle-sockets-driver

usage

Import into your ES6 code:

import { makeSocketsDriver } from 'cycle-sockets-driver'

Register the driver:

const drivers = {
  ...
  sockets: makeSocketsDriver()
}

Request format for sockets sink:

{
  socket: 'http://localhost:5000',
  event: 'connect'
}

For example:

sources.sockets.select({ socket: 'http://localhost:5000', event: 'connect' })

Package Sidebar

Install

npm i cycle-sockets-driver

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • timurkiyivinski