use initialize in WebSocketHandler class