Giter Site home page Giter Site logo

Comments (4)

noweare1 avatar noweare1 commented on July 30, 2024

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.

PaulZC avatar PaulZC commented on July 30, 2024

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.

noweare1 avatar noweare1 commented on July 30, 2024

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.

PaulZC avatar PaulZC commented on July 30, 2024

"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)

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.