@my-swu/simulator-client
@my-swu/simulator-client
Example:
ts
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
// Health is a low-cost way to verify the server is reachable.
const health = await simulatorClient.system.health()
console.log(health.status)Classes
Interfaces
- ApiErrorResponse
- CardsResource
- CardsResponse
- CoveredCardsResponse
- CreateLimitedEventRequest
- CreateMatchRequest
- DeckJson
- DeckJsonCard
- EngineHttpErrorOptions
- ErrorPayload
- FormatEventRequest
- FormatEventResponse
- GameState
- GetMatchResponse
- HealthResponse
- JoinLimitedEventRequest
- JoinMatchRequest
- LimitedEventAccessInput
- LimitedEventAccessResponse
- LimitedEventCommandRequest
- LimitedEventReference
- LimitedEventResponse
- LimitedEventsResource
- MatchAccessInput
- MatchAccessResponse
- MatchesResource
- MatchReference
- MatchSession
- MatchSessionConnectOptions
- MatchSessionEvents
- MatchSessionOptions
- MatchSessionState
- MatchSessionWaitOptions
- PongPayload
- ResolveCardIdsRequest
- ResolveCardIdsResponse
- SchemaTypeMap
- SessionResource
- SimulatorClient
- SimulatorClientOptions
- StatsResponse
- SystemResource
- WelcomePayload
Type Aliases
- CardIdResolution
- CardMetadata
- CardReferenceInput
- CardReferenceType
- ClientMessage
- ConnectionState
- CoveredCard
- DeckInput
- FetchLike
- FormatEventCommand
- GameCommand
- GameEvent
- LimitedEventAccess
- LimitedEventCommand
- LimitedEventSnapshot
- MatchAccess
- MatchSeat
- MatchSessionAccess
- MatchSessionSnapshotPredicate
- ServerMessage
- WebSocketFactory
