socket.io-zeromq-sample

This project is socket.io zeromq implementation sample.

Usage no npm install needed!

<script type="module">
  import socketIoZeromqSample from 'https://cdn.skypack.dev/socket.io-zeromq-sample';
</script>

README

socket.io-zeromq-sample

This project is socket.io zeromq implementation sample.

Setup

$ git clone git@github.com:kazupon/socket.io-zeromq-sample.git
$ npm install

Usage

Run the zeromq pub/sub server

$ ./node_modules/.bin/socket.io-zeromq-server

Use the socket.io-zeromq-server.

Run the frontend

$ node ./frontend.js

In frontend.js, Use the socket.io-zeromq adapter.

Run the backend

$ node ./backend.js

In backend.js, Use the socket.io-zeromq-emitter emitter.

License

MIT license.

See the LICENSE.