Skip to content

SessionMessage

public sealed class SessionMessage

Namespace SideHustle

Added in 3.0.0

A gamemode message received over Side Hustle’s P2P channel (see API.OnMessage). Since 3.0.0.

public string GamemodeId { get; }

Added in 3.0.0

The gamemode id the sender addressed.

public string Channel { get; }

Added in 3.0.0

The sender’s channel name, free-form per gamemode (e.g. “ping”, “state”).

public ulong SenderSteamId { get; }

Added in 3.0.0

The sender’s Steam id as Steam reported it for the packet. Never read from the payload.

public byte[] Payload { get; }

Added in 3.0.0

The raw payload bytes.

public bool IsText { get; }

Added in 3.0.0

True when the sender used a text overload.

public string Text { get; }

Added in 3.0.0

The payload decoded as UTF-8.