Fixed CWE-252 in WebSocket server initialization.