Simplify websocket server control routines