Comments (4)
WebServer does not support webSockets. There is a websocket library I used in one of my projects located here It worked well.
Why don't you want to use espAsynchWebserver library for websockets ?
from espasyncwebserver.
Hi Joseph (@noweare1 ),
This is a great library, it works really well. With arduino-esp32 v3.0.0, there is issue #1391 - but that can be solved. I'm investigating if it is now possible to achieve the same functionality using only the latest espressif core - without needing additional libraries (this and AsyncTCP included). My solution is to use WebServer and esp_http_server simultaneously. esp_http_server is only serving the /ws websocket - on port 81. WebServer is doing everything else - on port 80.
https://www.esp32.com/viewtopic.php?f=19&t=39987
Best wishes,
Paul
from espasyncwebserver.
I didn't know esp_http_server supported websockets. Like you, I try to keep the external libraries to a minimum and try to write my own code if I am up to it. Webservers/Websockets is way above my pay grade though : ). will have to take a look at that library. Since it is part of the IDF it is much better documented with lots of examples. Do you use esprressif-arduino or IDF framework ?
from espasyncwebserver.
"Do you use esprressif-arduino or IDF framework ?" arduino-esp32
v3.0.0 includes full support for the Wiznet W5500 Ethernet PHY under Arduino. It works very well with other SPI devices - microSD included.
from espasyncwebserver.
Related Issues (20)
- Send content with beginChunkedResponse
- AsyncWebServer Questions HOT 6
- Images won't load randomly
- Compiling issues HOT 7
- I Can't make the web explorer to offer to save credentials
- Change bool AsyncStaticWebHandler::canHandle to use exact match instead of String::startsWith(_uri)
- small ddos (press F5) crash: async_tcp ....watchdog got triggered HOT 1
- Compilation Error for Newer ESP32 HOT 3
- possible memory leak at send_p?
- Forwarding Webserver with websockets HOT 2
- Get new client ID at every refresh :( HOT 1
- Refusing connection when making httpGet request with mDNS
- Problem resolved ? "Arduino\libraries\ESPAsyncWebSrv\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'?" HOT 10
- does not compile with ESP32C3
- ESP8266: Compilation error: invalid conversion from 'const AsyncWebParameter*' to 'AsyncWebParameter*' [-fpermissive] HOT 1
- IDF 5 Coexistence support HOT 1
- It is possible Increase buffer size for rx data by websocket?
- Cant set Table or Cell width % because of template processing HOT 2
- Web server hangs up
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 espasyncwebserver.