Added websocket server multithreading.