MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / sendCommsData

Method sendCommsData

src/octoprint/server/util.py:225–229  ·  view source on GitHub ↗
(self, direction, data)

Source from the content-addressed store, hash-verified

223 pass
224
225 def sendCommsData(self, direction, data):
226 self._emit('commsData', {
227 'direction': direction,
228 'data': data
229 })
230
231 def sendEvent(self, type, payload=None):
232 self._emit("event", {"type": type, "payload": payload})

Callers 1

doTrafficBroadcastMethod · 0.80

Calls 1

_emitMethod · 0.95

Tested by

no test coverage detected