Coder Social home page Coder Social logo

WSS Server on ESP32 about arduinowebsockets HOT 12 OPEN

gilmaimon avatar gilmaimon commented on July 24, 2024 4
WSS Server on ESP32

from arduinowebsockets.

Comments (12)

gilmaimon avatar gilmaimon commented on July 24, 2024 7

Hi, thank you for opening the issue.

There is no support for that currently, no one has ever requested it before so it wasn't on my backlog.

As the library gets more popular I assume more people will come here looking for this feature. I'll add it to the backlog, but it might take a while until I actually get to work on it.

Depending on the public need for this feature, I might prioritize it over other stuff I need to do..

Gil.

from arduinowebsockets.

frippe75 avatar frippe75 commented on July 24, 2024 7

I'm unfortunately unqualified to get started on this but think it's really important to get it implemented since any PWA would require wss to function. Progressive Web Apps require https when serving them and any subsequent websocket connect is enforced by the browser to be secure. Writing one as we speak and I'm really eager to move forward :-)

from arduinowebsockets.

anotherishi avatar anotherishi commented on July 24, 2024 2

Yes @frippe75, and the sensors API (for accessing gyro, accelerometer, etc) also requires https/wss for serving.
It would be so great if these features are implemented.
Btw Thanks 😊

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on July 24, 2024 1

Sorry for the delay.

If you want to work on this feature, I recommand lookin at how the library handles secure vs non secure clients.
See this for configuration and look here for client and server tcp wrappers.

How I would go about doing this:

  • Create a SecuredEsp32TcpServer and SecuredEsp8266TcpServer, it will be a good idea to create a base class that inherits from TcpServer but adds some secure functions that both esp8266 and esp32 supports. In secure clients for example. the esp8266 and esp32 interface is very simmilar so I created a class that gets the WiFiClient type as template and as such I avoided some code duplication
  • After you have the classes implemented you will want to add them to the configuration so you will have some macro that defines the current secured tcp server type no matter what platform the code is compiling for
  • Then you will want to modify the websockets server code to have secure functions (like set certificates and such) and handle clients appropriatly.
    This is just one way off the top of my head to implement this.
    It is open for discussion and contribution.

Thank you,
Gil.

from arduinowebsockets.

floolean avatar floolean commented on July 24, 2024

from arduinowebsockets.

kmindspark avatar kmindspark commented on July 24, 2024

Exact same use case here. Would love to see support for hosting a WSS server.

from arduinowebsockets.

gb-123-git avatar gb-123-git commented on July 24, 2024

+1... Any plans to work on this ?

from arduinowebsockets.

skgadi avatar skgadi commented on July 24, 2024

+1 ... It will be very helpful

from arduinowebsockets.

kelvin-jara avatar kelvin-jara commented on July 24, 2024

+1 ... It will be very helpful! very help helpful!
I need stream video over wss. My work around for now is to create https nodejs server that support wss server to use it as a bridge. But it would be much better if wss is implemented directly to the esp32

from arduinowebsockets.

jsondevers avatar jsondevers commented on July 24, 2024
  • 1

from arduinowebsockets.

Snipeye avatar Snipeye commented on July 24, 2024

I'm also +1ing this (this feature would certainly pull me over to this library as opposed to others). Do you accept bribes? ;)

from arduinowebsockets.

meakashrao avatar meakashrao commented on July 24, 2024

Has this been implemented? or are there any other libraries that have a secure webserver implementation using websockets?

from arduinowebsockets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.