multicast-eventemitter
Advanced tools
Comparing version
@@ -0,1 +1,3 @@ | ||
// Copyright 2011 Thorcom Systems Ltd. All Rights Reserved. | ||
var crypto = require('crypto'); | ||
@@ -2,0 +4,0 @@ |
@@ -69,4 +69,5 @@ // Copyright 2011 Thorcom Systems Ltd. All Rights Reserved. | ||
socket.send(message, 0, message.length, hash.port, hash.address); | ||
socket.close(); // TODO: cache open sockets for reuse? | ||
} | ||
{ "name" : "multicast-eventemitter" | ||
, "description" : "LAN wide eventemitter, using multicast." | ||
, "version" : "0.0.2" | ||
, "version" : "0.0.4" | ||
, "maintainers" : | ||
@@ -5,0 +5,0 @@ [ { "name": "Chris Dew" |
@@ -6,2 +6,4 @@ multicast-eventemitter | ||
Please see https://github.com/marak/hook.io for a mature alternative. | ||
This package provides a cluster-wide event emitter. Message sent from any process on any machine on a LAN can be subscibed to by any other process on any other machine. | ||
@@ -12,5 +14,7 @@ | ||
This currently uses plain multicast. This has the following drawbacks: | ||
1. Messages are limited to about 1.5KB in length - exceeding this will produce a parsing error on receivers. | ||
2. It is unreliable (we receive 100% of sent messages on our LAN - YMMV) | ||
There are known bugs - see the FIXMEs and TODOs in the code. | ||
2. It is unreliable (though we receive 100% of sent messages on our LAN - YMMV) | ||
There are known and unknown bugs - see the FIXMEs and TODOs in the code. |
7120
3.05%145
1.4%19
26.67%