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

Really promising library! #2

Open
zekageri opened this issue Nov 22, 2023 · 2 comments
Open

Really promising library! #2

zekageri opened this issue Nov 22, 2023 · 2 comments

Comments

@zekageri
Copy link

I want to implement a websocket tunnel to my node js server which is in the cloud.
In my mind it would work like this

esp connects to server ( from intranet to internet )
server serves an http page to the client
client do an http request to the server
server captures every http request sends to esp32 via websocket
esp process websocket data like it was an http request
sends response back via websocket

This is a lot of work and a lot of data ping ponging.
I need some kind of an HTTP tunnel solution where

esp connects to server via http and not close the socket
server forwards every http request to esp
esp gets requets like it was in local

Can it work with this library?

I already have a setup with ESP Async Webserver.
I have setup the HTTP endpoints and it is working in local.
Now i need a server implementation.

@userlandkernel
Copy link
Owner

I need to revive this project as this project has some bugs in the protocol I wrote for it that make it close to unfunctional. It's also very slow I think because it uses synchronous code (cause I dont have extra memory for my ESP32 to run threaded code) but I'm planning to work on it in the future. You can use the code freely to make it work for your project but it doesn't work with HTTPS

@zekageri
Copy link
Author

Thank you for the response. Glad to hear you have plans. Can you elaborate why this is unfunctional? If you have time ofc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants