fixed broadcast bug. ipc.server.broadcast was always empty because ipc.server.sockets was not getting new socket connections pushed

This commit is contained in:
Brandon Miller 2014-03-11 10:37:37 -07:00
parent c9769a7d06
commit 567ddaf60b
2 changed files with 2 additions and 1 deletions

View file

@ -141,6 +141,7 @@ function init(path,config,log,port){
} }
function serverCreated(socket) { function serverCreated(socket) {
server.sockets.push(socket);
if(socket.setEncoding) if(socket.setEncoding)
socket.setEncoding(server.config.encoding); socket.setEncoding(server.config.encoding);

View file

@ -1,6 +1,6 @@
{ {
"name": "node-ipc", "name": "node-ipc",
"version": "0.9.15", "version": "0.9.16",
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", "description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",
"main": "node-ipc.js", "main": "node-ipc.js",
"directories": { "directories": {