[{"data":1,"prerenderedAt":88},["ShallowReactive",2],{"content-query-sZz52am3WN":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":82,"_id":83,"_source":84,"_file":85,"_stem":86,"_extension":87},"/dragonfly/pub_sub/subscribe","pub_sub",false,"","ArmaDragonflyClient - Subscribe","mdi:file-text-outline",{"type":11,"children":12,"toc":76},"root",[13,22,29,35,41,54,60],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"subscribe",[19],{"type":20,"value":21},"text","Subscribe",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"Subscribes the client to the specified channels through DragonflyDB.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"usage",[39],{"type":20,"value":40},"Usage",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","// Arguments:\n//  0: STRING - Name of channel to subscribe to (default: \"\")\n//  1: STRING - Name of CBA event type (default: \"\")\n//  2: STRING - Name of CBA custom event (default: \"\")\n//  3: STRING - Target to execute custom cba event on (default: nil)\n\n// Examples:\n// Global chat channel subscription\n[\"chat_channel\", \"global\", \"dragonfly_chat_msg\"] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)\n\n// Intel reports to HQ element\n[\"intel_channel\", \"remote\", \"dragonfly_intel_report\", netId _hqElement] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)\n\n// Local vehicle status updates\n[\"vehicle_status\", \"local\", \"dragonfly_vehicle_update\"] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)\n\n// Server-side mission state tracking\n[\"mission_state\", \"server\", \"dragonfly_mission_update\"] remoteExecCall [\"dragonfly_db_fnc_subscribe\", 2, false]; (Multiplayer Only)\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"links",[58],{"type":20,"value":59},"Links",{"type":14,"tag":30,"props":61,"children":62},{},[63,70,72],{"type":14,"tag":64,"props":65,"children":67},"a",{"href":66},"/dragonfly/pub_sub/publish",[68],{"type":20,"value":69},"Publish",{"type":20,"value":71}," |\n",{"type":14,"tag":64,"props":73,"children":74},{"href":4},[75],{"type":20,"value":21},{"title":7,"searchDepth":77,"depth":77,"links":78},2,[79,80,81],{"id":25,"depth":77,"text":28},{"id":37,"depth":77,"text":40},{"id":56,"depth":77,"text":59},"markdown","content:dragonfly:pub_sub:subscribe.md","content","dragonfly/pub_sub/subscribe.md","dragonfly/pub_sub/subscribe","md",1742777962323]