-
Notifications
You must be signed in to change notification settings - Fork 7.6k
(IDF Websocket client) - TRANSPORT_WS: Sec-WebSocket-Accept not found #9120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The server is https but it has an http interface and it does not redirect. Server code is a simple ws server import express from "express";
import http from "http";
import { WebSocketServer } from 'ws';
const app = express();
const server = http.createServer(app);
const wss = new WebSocketServer({ server });
wss.on('connection', function(ws) {
console.log("Client connected!");
ws.on('error', console.error);
ws.on('message', function(data) {
console.log('received: %s', data);
});
ws.on("close", function() {
console.log("Client disconnected!");
});
setInterval(() => {
ws.send('Test message');
}, 5000);
});
server.listen(80, () => {
console.log(`Server listening on port 80`);
}); |
you should ask in the IDF repo. If you are on master here, then you are on IDF v5.1.2 |
Yeah, i figured i should ask it there, so i created an issue. |
Can i somehow define
No success. The websocket client should work if i could define these. |
Almost a year later... I'm still looking for a way... |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
ESP32-Wrover
Device Description
A custom device
Hardware Configuration
A custom hardware
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Windows10
Flash frequency
80
PSRAM enabled
yes
Upload speed
115200
Description
The problem I'm facing is that i can't connect to my node.js server which is in the cloud with native websocket client.
It works if my server is running on local, but i can connect to the server with Postman regardless if it is in the cloud or not.
I'm hosting my server at onrender.com.
Server is fine because it works if i connect to it with postman or frontend js
Sketch
Debug Message
Other Steps to Reproduce
As i said, i have tried with Postman and with various ws client simulators and it works on every way except my ESP32.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: