MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / SetMethodHandler

Method SetMethodHandler

common/net/websocket_server.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void 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
137void EQ::Net::WebsocketServer::SetLoginHandler(LoginHandler handler)
138{

Callers 1

RegisterApiServiceFunction · 0.80

Calls 1

MethodHandlerEntryClass · 0.85

Tested by

no test coverage detected