Sets the WebSocket object
void setWebSocket(CustomWebSocket websocket) { this.websocket = websocket; }