MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / send

Method send

src/main/java/fielded/RemoteEditor.java:87–103  ·  view source on GitHub ↗
(String key, Collection<Pair<String, String>> value)

Source from the content-addressed store, hash-verified

85 boolean warned = false;
86 long prevTick = RunLoop.tick;
87
88 @Override
89 protected void send(String key, Collection<Pair<String, String>> value) {
90
91// if (value.size() == 0) return;
92
93 int index = 0;
94 for (Pair<String, String> v : value) {
95 System.out.println(" --> " + v.second);
96 server.send(socketName, "_messageBus.publish('" + key + "', " + v.second + ")");
97 if (index++ > 4) {
98 System.out.println(" limit exceeded (" + value.size() + ")");
99 //TODO, notify...
100 break;
101 }
102 }
103// }
104 }
105 };
106

Callers 4

RemoteEditorMethod · 0.45
changeSelectionMethod · 0.45
updateMethod · 0.45
sendJavaScriptMethod · 0.45

Calls 2

printlnMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected