bolt-internal-sockets
v2.0.2
Published
internal module used for various types of validations
Downloads
5
Readme
bolt-internal-sockets
Internal Bolt module used for managing apps' sockets for real time operations.
Installation
$ npm install bolt-internal-sockets
Use
var sockets = require('bolt-internal-sockets');
var socket = sockets.getSocket("my-app-name");
if (socket) socket.send(JSON.stringify({hello: "world"}));