Implemented function connect and list for WebSocketConnection