Ole Christian Eidheim
Ole Christian Eidheim
It would not matter much I think if you do the endpoint path check at onmessage (in case you save a state or something in your application), or you do...
I think it is very common to do it like this, and the slight delay you get from the lookup is very small compared to the time it takes to...
I would say its a design issue (for instance having a set of defined endpoints with corresponding functions, instead of creating these on the fly) more than creating computationally optimal...
Thank you, but boost regex should only be needed by old compilers. What version of MSVC do you use?
Thank you. If I'm not mistaken though, this is an issue within Boost.Asio?
The io_service does not need to be reconstructed on the second start(). If an external io_service is to be used, it has to be set before start() is called the...
Thank you for these suggestions, I'll think about this in the following weeks. There are also some additional related changes I have planned before the major version bump.
I would maybe do something like this: ```c++ #include "server_ws.hpp" #include using namespace std; typedef SimpleWeb::SocketServer WsServer; class Player { }; int main() { WsServer server; server.config.port = 8080; unordered_map...
Of course the above example takes it for granted that you run the server in one thread. If more threads are used, you would need a `connections_mutex` that needs to...
If it is needed, I'll add the getter. You mean a getter for socket::is_open I take it?