While establishing the connection using socket
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done( )" is called; if returning a Promise, ensure it resolves.
Given below is the code reference of the same
var socketOptions = {};
var socket = io.connect("http://localhost:5000", socketOptions);
socket.on('connect', function () {
console.log('Connection Established');
setTimeout(done, 500);
});
via Subba
No comments:
Post a Comment