aionnetwork / aion

Aion Network - Java Implementation
https://theoan.com/
MIT License
337 stars 113 forks source link

NanoHTTPD websocket #574

Open tcrowe opened 6 years ago

tcrowe commented 6 years ago

I'm running:

  • Which Aion version?: branch: testnet_q3_mastery, HEAD
  • Which operating system?: Unix, Linux
  • Which distributor and version?: Darwin OSX, Debian 9 (stretch)
  • How installed?: from source
  • Are you fully synchronized?: yes
  • Did you try to restart the node?: yes

There's no bug. I am wondering what has been the discussion so far.

I tried connecting with Web3.providers.WebsocketProvider but I realized that is not implemented on Aion.

I looked into it and found that Aion runs NanoHTTPD which reports to have websocket functionality. This may enable more features on web3 JS.

Web3 has a subscription feature. I don't see how I can make that work unless I poll the server which would be difficult to track the events that way.

I don't know what difficulty it would be for the Java devs or if it's necessary to have it.

Your thoughts?

AionJayT commented 6 years ago

Thanks for your report, in the next release, we will replace the HTTP service implement. Let on we will try to let the feature in. Thanks.

tcrowe commented 6 years ago

Thanks @AionJayT 👍

qoire commented 6 years ago

@JayT106 is this something you see happening on v0.3.2?