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:
parent
c9769a7d06
commit
567ddaf60b
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue