You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
'use strict'classCustomMiddleware{// for HTTPasynchandle(ctx,next){}// for WebSocketasyncwsHandle(ctx,next){ctx.socket.close()// I wan to close socket connection before it go to my ChatController}}module.exports=CustomMiddleware
But it not woking, socket never close. Is it bugs or what am I doing wrong?
I using adonisjs 4.1. my node version is 10.x
The text was updated successfully, but these errors were encountered:
Dear,
I do the example follow: https://adonisjs.com/docs/4.1/websocket-server#_creating_middleware, and I modify some code like bellow
But it not woking, socket never close. Is it bugs or what am I doing wrong?
I using adonisjs 4.1. my node version is 10.x
The text was updated successfully, but these errors were encountered: