Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / ClientMessage

Type Alias: ClientMessage

ClientMessage = {[k: string]: unknown; type: "ready"; } | {[k: string]: unknown; payload: GameCommand; type: "command"; } | {[k: string]: unknown; payload: FormatEventCommand; type: "formatEvent"; } | {[k: string]: unknown; type: "syncRequest"; } | {[k: string]: unknown; payload: {[k: string]: unknown; nonce?: string | null; }; type: "ping"; }

Defined in: packages/ts-sdk/src/generated/types/client-message.ts:3

Example:

ts
import type { 
ClientMessage
} from '@my-swu/simulator-client'
const
readyMessage
= {
type
: 'ready' } satisfies
ClientMessage
console
.
log
(
readyMessage
)

Released under the MIT License.