-
Notifications
You must be signed in to change notification settings - Fork 440
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
WIP: WebSockets subscriptions #144
Conversation
b1d5594
to
f1811cb
Compare
@barrasso hi, everything is almost done. Currently I'm building frameworks to test them on real project. You can see how to get latest pending transactions using Infura websockets API here https://github.com/matter-labs/web3swift/blob/subscriptions/Documentation/Usage.md#infura-websockets |
@BaldyAsh Great work! 👍🏼 In addition to the Infura subscriptions, is there a method to subscribe to my own custom node via websockets? For example: let delegate: Web3SocketDelegate = DelegateClass() // Some delegate class which will receive messages from endpoint
let socketProvider = SocketProvider.connectToSocket("ws://my.ropsten.dnp.dappnode.eth:8546", delegate: delegate)
try! socketProvider.subscribeOnNewPendingTransactions() |
@barrasso you will be able to use custom node in that way: let socketProvider = WebsocketProvider.connectToSocket(endpoint: <URL>, delegate: <Web3SocketDelegate>)! But currently I'm thinking is it a good idea to provide subscribe methods like |
Work for #145