Subscribe to events
Last updated
Last updated
Subscribe to events with the WebSocket .
Subscription is only available over stateful transports such as WebSocket. Subscription requests cannot be made over HTTPS.
The following WebSocket subscription example fires a notification each time a new header is appended to the chain: