Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
async function test() {
const client = new SuiClient({
transport: new SuiHTTPTransport({
url: 'https://fullnode.mainnet.sui.io:443',
websocket: {
reconnectTimeout: 1000,
url: 'wss://rpc.mainnet.sui.io:443',
},
}),
});
const unsubscribe = await client.subscribeEvent({
filter: {
All: [],
},
onMessage(event) {
// handle subscription notification message here. This function is called once per subscription message.
console.log(event);
},
});
}
It currently looks like this subscription method has been abandoned.
async function test() { const client = new SuiClient({ transport: new SuiHTTPTransport({ url: 'https://fullnode.mainnet.sui.io:443', websocket: { reconnectTimeout: 1000, url: 'wss://rpc.mainnet.sui.io:443', }, }), });
const unsubscribe = await client.subscribeEvent({ filter: { All: [], }, onMessage(event) { // handle subscription notification message here. This function is called once per subscription message. console.log(event); }, }); }
It currently looks like this subscription method has been abandoned.