[{"data":1,"prerenderedAt":88},["ShallowReactive",2],{"content-query-dpLTlQhxlQ":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/publish","pub_sub",false,"","ArmaDragonflyClient - Publish","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},"publish",[19],{"type":20,"value":21},"text","Publish",{"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},"Posts a message to the given channel 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 publish to (default: \"\")\n//  1: STRING - Message to publish (default: \"\")\n\n// Examples:\n// Send chat message\nprivate _chatData = [\"PlayerName\", \"Hello everyone!\", \"Global\"];\n[\"chat_channel\", str _chatData] call dragonfly_db_fnc_publish; (Server or Singleplayer Only)\n\n// Send SPOTREP\nprivate _spotRepData = [\n    \"Squad\",           // Size\n    \"Moving\",         // Activity\n    [1234, 5678],    // Location\n    \"Infantry\",      // Unit type\n    \"Light Arms\"     // Equipment\n];\n[\"intel_channel\", str _spotRepData] call dragonfly_db_fnc_publish; (Server or Singleplayer Only)\n\n// Update vehicle status\nprivate _vehData = [\n    \"VehicleID_123\",\n    0.75,            // Fuel\n    0.2,             // Damage\n    getPosASL _vic   // Position\n];\n[\"vehicle_status\", str _vehData] remoteExecCall [\"dragonfly_db_fnc_publish\", 2, false]; (Multiplayer Only)\n\n// Mission objective update\nprivate _objData = [\n    \"OBJ_ALPHA\",\n    \"COMPLETE\",\n    systemTime\n];\n[\"mission_objectives\", str _objData] call dragonfly_db_fnc_publish; (Server or Singleplayer 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,68,70],{"type":14,"tag":64,"props":65,"children":66},"a",{"href":4},[67],{"type":20,"value":21},{"type":20,"value":69}," |\n",{"type":14,"tag":64,"props":71,"children":73},{"href":72},"/dragonfly/pub_sub/subscribe",[74],{"type":20,"value":75},"Subscribe",{"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:publish.md","content","dragonfly/pub_sub/publish.md","dragonfly/pub_sub/publish","md",1742777962318]