Switched to connect using socket.io