beginning of fixing problem with websocket server but not resolved