MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
6.05k stars 11.14k forks source link

Using Events page is outdated after deprecation of websocket-based JSON-RPC #19489

Open zaebumbatt opened 2 weeks ago

zaebumbatt commented 2 weeks ago

After the websocket-based JSON-RPC service was deprecated and now returns a 405 Method Not Allowed, this page appears outdated: Using Events.

Could you please update this documentation with examples on how to handle events using GraphQL? Currently, there are no such examples available on this page or in the GraphQL-RPC guide.

Thank you!

stefan-mysten commented 2 weeks ago

@zaebumbatt Currently, there's no subcription for GraphQL either. You would have to do polling on events. https://docs.sui.io/references/sui-api/sui-graphql/reference/types/objects/event