replaced self-coded websockets implementation with socket.io (because it knows what it's doing)