eidheim / Simple-WebSocket-Server

A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration with Simple-Web-Server

grigorig opened this issue · comments

I'd like to serve both a REST API and a WebSocket service from a single listening socket. That means I have to upgrade to the WebSocket protocol with Simple-Web-Server from specific paths only and then migrate the socket to Simple-WebSocket-Server. It looks like this isn't currently supported/possible.

Please have a look at an example where both HTTP and WS is served on one port here: https://github.com/eidheim/desktop-stream

Thank you. That is much more easy than I expected. No idea why I missed this upgrade functionality in Simple-Web-Server!