jumpstorm/server/src/network/index.ts

17 lines
367 B
TypeScript
Raw Normal View History

2023-08-25 20:10:09 -04:00
import { Message } from '@engine/network';
export * from './MessageProcessor';
export * from './MessagePublisher';
export * from './MessageReceiver';
export type SessionData = { sessionId: string };
export type Session = {
sessionId: string;
controllableEntities: Set<string>;
};
export interface ServerMessage extends Message {
sessionData: SessionData;
}