Closed cschuchardt88 closed 4 months ago
I think community will love two absolutely different websocket interfaces.
This would make 3? Because neo-cli
node has one built-in too (but thats for syncing blockchain). But this is meant to replace #795. Now are you talking about neo-go
's? If that is the case maybe we can build the same way in this PR. What my goal is to allow users to have a fully functioning API
that does everything that neo-cli
and neo-express
does. The reason behind this; is to be able to support other platforms and programming languages along with special use cases. The way that neo-core
sits right now... it can't be done easily; if not at all. But with the help of this and other people expanding this API
. We can tackle web
, dotnet
and other ecosystems. This also allows others to make plugins to expand the api
for custom in house applications that developers or organizations may need for there only business needs. I think the add-on of this new sidechain; it would be time for ALL developers and users to be able to use neo
if they choose too. WebSockets
would be the easiest way to start. With web3
most people want their own dapp
to be able to get blockchain information and full neo-core
functionally. Currently you would have to build your own.
What this feature offers, is MUST to have. My other reasoning is that with neo3-visual-tracker
(vscode-extension) uses 3rd party javascript library (neon-js) for accessing the RPCServer
of neo-express
. Now this is very buggy as we know. Could be the because of old version. With this websocket API we can easily get new blocks and other information that is needed for this extension. I am currently rebuilding this extension, and need this plugin, or else I'll make it just for neo-express
, But i thought the features it offers would be a good choice for community and ecosystem.
@roman-khimov @superboyiii We would like to use this feature in neo-express
for the updated neo3-visual-tracker
to use (vscode extension). Any ETA on or how or if this feature will be added to core?
This can wait @shargon for now, im building out the wallet api for it.
@superboyiii If this PR can you on your list ASAP for testing. I need this PR to update the UI for neo-express
(vscode extension). The extension is pretty bad at the moment. It unworkable. All the project and templates it generates are useless for any new developer; even those that don't know C#.
Description will be updated soon....
Some things to know
OnRequest
event to get custom paths/headers and query params)ws://127.0.0.1:10340/
ws://127.0.0.1:10340/?MyCustomParam=HelloWorld
ws://127.0.0.1:10340/MyCustomPath/FakePage.html?say=Hello%20Bob
Neo.Json
neo-core
fails)WebSocket
Events and their IDs
Request information
config.json
Developers API (all static)
Events
Methods
Properties
Creating a method in
Code
Video of Syncing (Blockchain)
https://github.com/neo-project/neo-modules/assets/8141309/22c5cd49-8e81-4ba9-a11b-5144cbe8b4b9
Screenshots
Block Event (on commit)
Invoke Response (Echo Method)
Contract Response (on syncing/new block)
Transaction Response (on syncing/new block)
Block Response (on syncing/new block)
Change Log
WebSocketServer
closes #716