mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Implement broadcast for events
Add broadcastTo property to events that broadcasts them to all entities of the specified target that's downstream to the connection it was sent to.
This commit is contained in:
1 parent
21d9fdff7b
commit
e5115df28b
4 files changed
+65
-1
No files matched your search
@@ -115,6 +115,12 @@ describe("lib/link/messages", function() {
|
||||
new Error("Invalid forwardTo value invalid")
|
||||
);
|
||||
});
|
||||
it("should throw on invalid broadcastTo", function() {
|
||||
assert.throws(
|
||||
() => new link.Event({ broadcastTo: 'invalid'}),
|
||||
new Error("Invalid broadcastTo value invalid")
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe(".attach()", function() {
|
||||
|
||||
Reference in new issue
Block a user