little better websocket server message handling