json, websocket server test snippets