MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / setup

Function setup

lib/utils/websocket-api.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23static bool setupDone = setup();
24
25bool setup()
26{
27 AddPluginPostLoadStep(registerWebsocketVendor);
28 AddStartStep([]() {
29 SendWebsocketVendorEvent("AdvancedSceneSwitcherStarted",
30 nullptr);
31 });
32 AddStopStep([]() {
33 SendWebsocketVendorEvent("AdvancedSceneSwitcherStopped",
34 nullptr);
35 });
36 return true;
37}
38
39static void
40registerWebsocketVendorRequest(const char *requestName,

Callers 1

websocket-api.cppFile · 0.70

Calls 4

SendWebsocketVendorEventFunction · 0.85
AddPluginPostLoadStepFunction · 0.70
AddStartStepFunction · 0.70
AddStopStepFunction · 0.70

Tested by

no test coverage detected