| 60 | } |
| 61 | |
| 62 | void WSSSession::onReceivedRequestHeader(const HTTP::HTTPRequest& request) |
| 63 | { |
| 64 | // Check for WebSocket handshaked status |
| 65 | if (_ws_handshaked) |
| 66 | return; |
| 67 | |
| 68 | // Try to perform WebSocket upgrade |
| 69 | if (!PerformServerUpgrade(request, response())) |
| 70 | { |
| 71 | HTTPSSession::onReceivedRequestHeader(request); |
| 72 | return; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | void WSSSession::onReceivedRequest(const HTTP::HTTPRequest& request) |
| 77 | { |
nothing calls this directly
no outgoing calls
no test coverage detected