nginx - Socket.Io under multinode cluster on loopback-pm -


i'm using process manager of strongloop called strong-pm cluster node instances, use last socket.io library websockets implementation,

i saw exist node module call socket io store clusters

to resolve problem using node's native cluster messaging, question module used under strong-pm resolve problem of clustering socket.io??, not how can resolve problem of cluster nodes using strong-pm , socket.io.

actually make tests, using strong-pm , nginx, configure nginx connect socket.io clients server, when try broadcast event server clients event never sent, supouse need module between strong-pm , nginx manage sticky-sessions correctly. suspicious correct??

regards

i resolve problem using socket.io redis adapter , force socket.io client use websockets protocol this:

var socket = io({transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', 'polling']}); 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -