Skip to content

How to use HTTP server and WebSocket server on the same port ? #149

Open
@thedub2001

Description

@thedub2001

Hello!
I would like to use the same port for WebSocket server and HTTP server to avoid opening a port on my router.
In the example sketch : WebSocketServer_LEDcontrol.ino, is there a way to do something like this ?

26   ESP8266WebServer server(80); 
27   WebSocketsServer wsServer = WebSocketsServer(80); 

When I do that my web browser prints the following error message

Impossible to establish a connection with the (WebSocket) server

I tried to follow the #10 issue but it's not compiling for the ESP8266

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions