Made websocket for receiving spawn messages from server