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

Websocket support #1840

Merged
merged 2 commits into from
Mar 23, 2019
Merged

Websocket support #1840

merged 2 commits into from
Mar 23, 2019

Conversation

cryptocode
Copy link
Contributor

@cryptocode cryptocode commented Mar 17, 2019

Adds support for notifications via Websockets. This offers a more efficient callback mechanism for block confirmations, and allows for multiple listeners. As it's topic-based, filtering and additional events can be added in the future. Proper JSON is returned (the http callback returns stringified blocks). Comments on message formatting are most welcome. Note that the http callback is still supported.

Preliminary docs: https://github.com/cryptocode/notes/wiki/Websocket-support
Sample nodejs client: https://github.com/cryptocode/nano-websocket-sample-nodejs

@cryptocode cryptocode added enhancement incomplete This item is incomplete and should not be merged if it is a pull request labels Mar 17, 2019
@cryptocode cryptocode added this to the V19.0 milestone Mar 17, 2019
@cryptocode cryptocode self-assigned this Mar 17, 2019
@cryptocode cryptocode removed the incomplete This item is incomplete and should not be merged if it is a pull request label Mar 18, 2019
…tartup logging and optimize for likely errocode path
@cryptocode cryptocode merged commit fa67646 into nanocurrency:master Mar 23, 2019
@cryptocode cryptocode deleted the ws-callback branch March 23, 2019 11:05
guilhermelawless pushed a commit to guilhermelawless/nano-node that referenced this pull request Apr 15, 2019
* Websocket support

* Fix locking, add bind address to config, alwayts pop front message, startup logging and optimize for likely errocode path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants