Test websocket connection and send/receive data

This is especially useful if you're building a websocket server. You can connect to both secure (WSS) and unsecure servers (WS).