simplified the websocket test api