socket.broadcasthelper for broadcast emit
app, whereas previously it attaches the socket.io instance. This facilitates accessing
koaSocketinstances from any
appmiddleware without having to pass it around as a dependency, the raw socket.io instance is still available as
._io, whilst the default namespace becomes
.ioif it exists.
koaSocketonly supports node v4 as its lowest version.
startis renamed to
Startis misleading, more so than
attachwhich at least does attach socket.io to a koa-callback-powered listener.
cowrapped generators, similar to one method of using koa.
ctxparameter, which is passed through middleware to event listeners and is mutable.