query
function of WebsocketProvider
outputs the following format:
connection
field indicates whether the websocket connection was successful (true
) or not (false
). The data
field contains the received data from the websocket.
If the connection
field indicates unsuccessful connection (false
) then the object will also include an error
field with details about the failed connection.