MCPcopy Create free account
hub / github.com/SmingHub/Sming / addSession

Method addSession

samples/HttpServer_WebSockets/app/CUserData.cpp:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "CUserData.h"
2
3void CUserData::addSession(WebsocketConnection& connection)
4{
5 activeWebSockets.addElement(&connection);
6 connection.setUserData(this);
7}
8
9void CUserData::removeSession(WebsocketConnection& connection)
10{

Callers 1

wsConnectedFunction · 0.80

Calls 2

addElementMethod · 0.80
setUserDataMethod · 0.80

Tested by

no test coverage detected