Closed
Description
Describe the bug
The Websocket-Chat example does not seem to work with Chrome and Safari.
How To Reproduce
Steps to reproduce the behavior:
- Add the following line to HTTPSServer.hpp:
#define HTTPS_LOGLEVEL 4
for a detailed log of the server's activity. - Compile and upload.
- Reset the esp32 board.
- Access the esp32 server using the Firefox browser from two browser windows.
- Make the connection as two different users.
- Observe that the example works nicely.
- Repeat 4-5 from two Safari browser windows.
- Note that the browser drops the socket connection immediately after serial monitor message "Creating new chat client!". Same behavior on Mac OS and IOS.
- Repeat 4-5 from two Chrome browser windows.
- Note that the server hangs: it never prints the "Creating new chat client!" message.
Expected Behavior
The (very nice) Websocket-Chat example is expected to work on most of the popular browsers.
Actual Behavior
The Websocket-Chat example works beautifully, but only with Firefox.
ESP32 Module
Specifications of my module:
- Board: AI Thinker ESP32-CAM
- RAM/PSRAM: 320K
- Flash Size: 4MB
- Separate UART USB adapter
Same behavior on Wemos D1 mini board, btw.
Software (please complete the following information if applicable)
- Arduino 1.8.13
- OS: Ubuntu 20.04 and Mac OS 11.2.3
- Client used to access the server: Firefox 86.0.1 and 87.0, Chrome 89.0.4389.128, Safari 14.0.3 (16610.4.3.1.7)
- No experience with curl
Additional context
Copies of the serial monitor are attached
debug_firefox.txt
debug_safari.txt
debug_chrome.txt
.
Metadata
Metadata
Assignees
Labels
No labels