Is it possible to make a web socket call to an external API

Hi

I think the answer is no but is it possible to make wss API call from HA?

connection takes the form

wss://IP.IP.IP.IP/eg/

//Login

{
“jsonrpc”:“2.0”,
“id”:0,
“method”:“LogIn”,
“params”:
{
“username”:“commissioner”, “password”:“CooperLS”
}
}