mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
websocket
move sending broadcasts back to it's own thread cause it can lock the even loop
This commit is contained in:
@@ -27,12 +27,10 @@ struct action {
|
||||
action(action_type t, websocketpp::connection_hdl h) : type(t), hdl(h) {}
|
||||
action(action_type t, websocketpp::connection_hdl h, Server::message_ptr m)
|
||||
: type(t), hdl(h), msg(m) {}
|
||||
action(action_type t, std::string p) : type(t), payload(p) {}
|
||||
|
||||
action_type type;
|
||||
websocketpp::connection_hdl hdl;
|
||||
Server::message_ptr msg;
|
||||
std::string payload;
|
||||
};
|
||||
|
||||
class Websocket
|
||||
|
||||
Reference in New Issue
Block a user