wrap websocket server with logger middleware