MMLChatEvent extendsRemoteEvent

A class that extends Event | Event.

detailisReadonly

detail: { message: string connectionId: number }

Type declaration

  • message:  
  • string

The contents of the chat message.

  • connectionId:  
  • number

The unique numeric id of the connection that sent the event.

typeisReadonly

The **

type

** read-only property of the Event interface returns a string containing the event's type.

MDN Reference

Literal: chat