MCPcopy
hub / github.com/4ian/GDevelop / MessageData

Class MessageData

Extensions/Multiplayer/peerJsHelper.ts:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 * @category Multiplayer
43 */
44 export class MessageData implements IMessageData {
45 public readonly data: any;
46 public readonly sender: string;
47 constructor(data: object, sender: string) {
48 this.data = data;
49 this.sender = sender;
50 }
51 public getData(): any {
52 return this.data;
53 }
54 public getSender(): string {
55 return this.sender;
56 }
57 }
58
59 export interface IMessagesList {
60 getName(): string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected