streaming

package
v5.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeStartMission      = "start_mission"
	TypeEndMission        = "end_mission"
	TypeAddSoldier        = "add_soldier"
	TypeAddVehicle        = "add_vehicle"
	TypeAddMarker         = "add_marker"
	TypeSoldierState      = "soldier_state"
	TypeVehicleState      = "vehicle_state"
	TypeMarkerState       = "marker_state"
	TypeDeleteMarker      = "delete_marker"
	TypeDeleteSoldier     = "delete_soldier"
	TypeDeleteVehicle     = "delete_vehicle"
	TypeFiredEvent        = "fired_event"
	TypeProjectileEvent   = "projectile_event"
	TypeGeneralEvent      = "general_event"
	TypeSectorEvent       = "sector_event"
	TypeEndMissionEvent   = "end_mission_event"
	TypeHitEvent          = "hit_event"
	TypeKillEvent         = "kill_event"
	TypeChatEvent         = "chat_event"
	TypeRadioEvent        = "radio_event"
	TypeTelemetry         = "telemetry"
	TypeTimeState         = "time_state"
	TypeAce3Death         = "ace3_death"
	TypeAce3Unconscious   = "ace3_unconscious"
	TypeAddPlaced         = "add_placed"
	TypePlacedEvent       = "placed_event"
	TypeMissionFocusStart = "mission_focus_start"
	TypeMissionFocusEnd   = "mission_focus_end"
)

Message type constants matching the streaming protocol.

Variables

AllMessageTypes lists every streaming message type.

Functions

This section is empty.

Types

type AckMessage

type AckMessage struct {
	Type string `json:"type"` // always "ack"
	For  string `json:"for"`  // the message type being acknowledged
}

AckMessage is the server's acknowledgement response.

type Envelope

type Envelope struct {
	Type    string          `json:"type"`
	Payload json.RawMessage `json:"payload"`
}

Envelope wraps all messages sent over the WebSocket.

type StartMissionPayload

type StartMissionPayload struct {
	Mission *core.Mission `json:"mission"`
	World   *core.World   `json:"world"`
}

StartMissionPayload carries mission and world data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL