We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/socketio/socket.io-admin-ui/blob/158864989dddeba67df9975a4cad48ef310f8c80/lib/index.ts#L543C32-L543C38
@WebSocketGateway(8080, { namespace: 'chat', cors: { origin: '*', credentials: true, }, })
afterInit() { instrument(this.server, { auth: false, mode: 'production', }); }
// error TypeError: io.of is not a function
how to fix : remove namespace from @websocketgateway
// correct way
@WebSocketGateway(8080, { cors: { origin: '*', credentials: true, }, })
The text was updated successfully, but these errors were encountered:
i fix it
afterInit(nameSpace: Namespace) { instrument(nameSpace.server, { auth: false, mode: 'production', }); }
please add this to documantion
Sorry, something went wrong.
i fix it afterInit(nameSpace: Namespace) { instrument(nameSpace.server, { auth: false, mode: 'production', }); } please add this to documantion
it works, thanks
No branches or pull requests
https://github.com/socketio/socket.io-admin-ui/blob/158864989dddeba67df9975a4cad48ef310f8c80/lib/index.ts#L543C32-L543C38
@WebSocketGateway(8080, {
namespace: 'chat',
cors: {
origin: '*',
credentials: true,
},
})
afterInit() {
instrument(this.server, {
auth: false,
mode: 'production',
});
}
// error TypeError: io.of is not a function
how to fix : remove namespace from @websocketgateway
// correct way
@WebSocketGateway(8080, {
cors: {
origin: '*',
credentials: true,
},
})
The text was updated successfully, but these errors were encountered: