UNPKG

@colyseus/core

Version:

Multiplayer Framework for Node.js.

25 lines (24 loc) 1.69 kB
import Clock, { Delayed } from '@colyseus/timer'; export { Server, type ServerOptions } from './Server.js'; export { Room, RoomInternalState } from './Room.js'; export { Protocol, ErrorCode, getMessageBytes } from './Protocol.js'; export { RegisteredHandler } from './matchmaker/RegisteredHandler.js'; export { ServerError } from './errors/ServerError.js'; export { type RoomException, OnCreateException, OnAuthException, OnJoinException, OnLeaveException, OnDisposeException, OnMessageException, SimulationIntervalException, TimedEventException, } from './errors/RoomExceptions.js'; import * as matchMaker from './MatchMaker.js'; export { matchMaker }; export { updateLobby, subscribeLobby } from './matchmaker/Lobby.js'; export * from './matchmaker/driver/local/LocalDriver.js'; export { type Client, type ClientPrivate, type AuthContext, ClientState, ClientArray, Transport, type ISendOptions } from './Transport.js'; export { type Presence } from './presence/Presence.js'; export { LocalPresence } from './presence/LocalPresence.js'; export { type Serializer } from './serializer/Serializer.js'; export { SchemaSerializer } from './serializer/SchemaSerializer.js'; export { Clock, Delayed }; export { generateId, Deferred, HttpServerMock, spliceOne, getBearerToken } from './utils/Utils.js'; export { isDevMode } from './utils/DevMode.js'; export { subscribeIPC, requestFromIPC } from './IPC.js'; export { debugMatchMaking, debugMessage, debugPatch, debugError, debugConnection, debugDriver, debugPresence, debugAndPrintError, } from './Debug.js'; export { LobbyRoom } from './rooms/LobbyRoom.js'; export { RelayRoom } from './rooms/RelayRoom.js'; export { logger } from './Logger.js';