Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i subscribe transactions? #19907

Open
zilongliang opened this issue Oct 18, 2024 · 1 comment
Open

how can i subscribe transactions? #19907

zilongliang opened this issue Oct 18, 2024 · 1 comment
Assignees
Labels
doc-issue Issue submitted using the Doc issue template

Comments

@zilongliang
Copy link

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.

@zilongliang zilongliang added the doc-issue Issue submitted using the Doc issue template label Oct 18, 2024
@Alina-chan
Copy link

Check relevant issue #19493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-issue Issue submitted using the Doc issue template
Projects
None yet
Development

No branches or pull requests

4 participants