Added WebSocket handler multithreading