switched to connect and pure websockets