support hook on existing websocket server