Thursday 28 December 2017

using koa and koa-websocket, is it possible to emit an event from anywhere in my app to broadcast over the websocket channel?

The websocket channel is defined inside app.js but I have other libraries that need to somehow broadcast to it. Should I just pass the koa app object around to do that? or is there a smart event broadcasting across my entire library I can integrate somehow.

Submitted December 28, 2017 at 09:04AM by nothingduploading

No comments:

Post a Comment