test websocket server and client