Unsubscribe

Unsubscribe from event on Websocket

get
client := rpchttp.New("tcp:0.0.0.0:26657", "/websocket")
err := client.Start()
if err != nil {
   handle error
}
defer client.Stop()
query := "tm.event = 'Tx' AND tx.height = 3"
err = client.Unsubscribe(context.Background(), "test-client", query)
if err != nil {
   handle error
}
Query parameters
querystringRequired

query is a string, which has a form: "condition AND condition ..." (no OR at the moment). condition has a form: "key operation operand". key is a string with a restricted set of possible symbols ( \t\n\r\()"'=>< are not allowed). operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a string (escaped with single quotes), number, date or time.

Example: tm.event = 'Tx' AND tx.height = 5
Responses
200
Answer
application/json
Responseall of

Empty Response

get
GET /unsubscribe HTTP/1.1
Host: coreum-tendermint.nownodes.io
Accept: */*
{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Revision created

GitBook: No commit message