Comments (12)
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.
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.
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.
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.
from arduinowebsockets.
Exact same use case here. Would love to see support for hosting a WSS server.
from arduinowebsockets.
+1... Any plans to work on this ?
from arduinowebsockets.
+1 ... It will be very helpful
from arduinowebsockets.
+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.
- 1
from arduinowebsockets.
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.
Has this been implemented? or are there any other libraries that have a secure webserver implementation using websockets?
from arduinowebsockets.
Related Issues (20)
- How to get a reference of the web socket client that dispatched the msg callback
- Hieromon/AutoConnect & WebSockets Client on ESP8266 - Can't Establish wss
- Secured-ESP8266-Client can't seem to receive any messages while connection is open HOT 1
- Compilation error: 'WebsocketsClient' does not name a type ?? HOT 3
- Getting a error from the TCPServer using the Arduino GIGA R1 WIFI on the ESP-32Client code. HOT 10
- ESP32-CAM WebSocket Server: Failure to Stream Camera Feed after Page Refresh or Multiple Connections
- WSS Connection error
- [ 5236][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number" HOT 2
- Reconnecting after lost connection HOT 2
- Disconnecting almost inmediately
- Random disconnects, fails on binary ping including 0x00 HOT 1
- Issue with WSS and ESP 32 HOT 4
- Esp32 WebSocket Client won't work with WebSocket Node.js server. HOT 3
- Client-Message-Buffer
- ESP32 Server disconnected when receiving messages HOT 1
- Compilation errors with arduino_esp32 version 3.0.0 HOT 6
- wrong username
- Project is dead
- network::TcpServer* _server HOT 1
- Getting my connection closed when on node js wss server HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinowebsockets.