| 123 | } |
| 124 | |
| 125 | void EQ::Net::WebsocketServer::SetMethodHandler(const std::string &method, MethodHandler handler, int required_status) |
| 126 | { |
| 127 | //Reserved method names |
| 128 | if (method == "subscribe" || |
| 129 | method == "unsubscribe" || |
| 130 | method == "login") { |
| 131 | return; |
| 132 | } |
| 133 | |
| 134 | _impl->methods[method] = MethodHandlerEntry(handler, required_status); |
| 135 | } |
| 136 | |
| 137 | void EQ::Net::WebsocketServer::SetLoginHandler(LoginHandler handler) |
| 138 | { |
no test coverage detected