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
// serverconstapp=require('express')();consthttp=require('http')constserver=http.createServer(app);constio=require('socket.io')(server);server.listen(3000,()=>{console.log('listening on *:3000');});io.on('connection',(socket)=>{console.log('a user connected');});// clientconstport=3000;const{connect}=require('socket.io-client');consturl=`http://localhost:${port}/console`;constsocket=connect(url,{reconnection: false,});socket.once('connect_error',(e)=>{console.log('connect_error',e.message);socket.close();server.close();});
coderaiser@cloudcmd:~/cloudcmd$ time node example.js
listening on *:3000
connect_error Error: Invalid namespace
real 0m45.342s
user 0m0.360s
sys 0m0.044s
Expected behaviour
What is expected?
Expected that event loop will be freed much faster :).
Setup
OS:
browser:
socket.io version: 3.0.3
Other information (e.g. stacktraces, related issues, suggestions how to fix)
You want to:
Current behaviour
What is actually happening?
Steps to reproduce (if the current behaviour is a bug)
Forked and made reproduceble: fiddle.
Here is code example:
Expected behaviour
What is expected?
Expected that
event loop
will be freed much faster :).Setup
3.0.3
Other information (e.g. stacktraces, related issues, suggestions how to fix)
When using getActiveHandlers, see such infomration
Code Example
The text was updated successfully, but these errors were encountered: