Skip to content

Type Alias: ServerMessage<View> ​

ts
type ServerMessage<View> = 
  | WelcomeFrame<View>
  | StateFrame<View>
  | PatchFrame
  | PresenceFrame
  | AckFrame
  | RejectFrame
  | ErrorFrame
  | MessageFrame;

Defined in: protocol.ts:196

Every frame a room sends, apart from the pong keepalive.

Type Parameters ​

Type ParameterDefault type
Viewunknown

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.