Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

gateway

entry point to the colu enviorment, it's also a job queue consumer and holds the socket connections for socket.io on all the clients.

Under development

TODO:

  • Add IOS/Android push
  • Route all traffic through gateway and proxy to servers

Installation

npm install gateway

reading messages published to pubsub

User connected message

varpubsub=require('fw_pubsub')varprod=newpubsub.Producer('http://localhost')prod.create()prod.on('message',function(name,data,remoteId){if(name==='userConnected'){console.log('registering userid ',data.userId)}})

Without cluster:

messages gateway accepts

from inside the callback when a new user message is recived:

prod.publish('addToRooms',['room1','room2'],remoteId)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages