mattstyles / koa-socket

Sugar for connecting socket.io to a koa instance
242 stars 50 forks source link

readme example error #43

Open ceyzaguirre4 opened 6 years ago

ceyzaguirre4 commented 6 years ago

where it says (under middlewares):

io.use( async ( ctx, next ) {
  console.log( 'Upstream' )
  await next()
  console.log( 'Downstream' )
})

it should be

( ctx, next ) => {