MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / addSubProtocol

Method addSubProtocol

Sources/Dependencies/ixwebsocket/IXWebSocket.cpp:628–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 }
627
628 void WebSocket::addSubProtocol(const std::string& subProtocol)
629 {
630 std::lock_guard<std::mutex> lock(_configMutex);
631 _subProtocols.push_back(subProtocol);
632 }
633
634 const std::vector<std::string>& WebSocket::getSubProtocols()
635 {

Callers 1

CreateClientMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected