mattgodbolt / seasocks

Simple, small, C++ embeddable webserver with WebSockets support
BSD 2-Clause "Simplified" License
735 stars 119 forks source link

Notifying all WebSocket clients from another thread #83

Closed asmyasnikov closed 6 years ago

asmyasnikov commented 6 years ago

Hi! How I can notifying all websocket clients about new data getting from another thread? If I call every registered connection 'connection->send()' from another thread, server throwed exception and wrote 'seasocks called on wrong thread'. =(

asmyasnikov commented 6 years ago

Sorry. I see later the server.execute() method for this feature.