The link you posted is for the Android WebSocket client. The B4A WebSocket client (as well as the B4J WebSocketClient) has the IsConnected method exposed as the Connected property.
The B4J WebSocket object has the Open property, which is pretty much equivalent to the Connected property, I think.