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

Method PerformAction

plugins/base/macro-action-websocket.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool MacroActionWebsocket::PerformAction()
41{
42 if (_api != MacroActionWebsocket::API::SCENE_SWITCHER) {
43 SendRequest(_message);
44 return true;
45 }
46
47 if (_type == MacroActionWebsocket::MessageType::REQUEST) {
48 auto vendorRequest = ConstructVendorRequestMessage(_message);
49 SendRequest(vendorRequest);
50 } else {
51 SendWebsocketEvent(_message);
52 }
53 return true;
54}
55
56void MacroActionWebsocket::LogAction() const
57{

Callers

nothing calls this directly

Calls 2

SendWebsocketEventFunction · 0.85

Tested by

no test coverage detected