Page cover

Lobby Chat Msg

Like what your seeing?

Introduction

public struct LobbyChatMsg

Represents a chat message sent from the Steam Lobby system. This can be used to identify the sending lobby, user and data and can parse the data to a string or Json serialziable object.

Fields and Attributes

Type
Name
Comment

Lobby

lobby

The source lobby

UserData

sender

The user that sent it

byte[]

data

The raw data sent

DateTime

recievedTime

The time stamp the message was recieved

string

Message

the string parsing of the message

Methods

public override string ToString();

The same as calling Message, this returns the data parsed using UTF8 to a string

public T FromJson<T>();

This will read the string data into Unity's JsonUtility casting the object to the input type

Last updated