- Position message send will be on format : message : userId : user identification roomId: room identification position: position of user in map x: user x position on map y: user y position on map - Create Point object and interface to have position x and y of user in map.
5 lines
No EOL
88 B
TypeScript
5 lines
No EOL
88 B
TypeScript
export interface PointInterface {
|
|
x: number;
|
|
y: number;
|
|
toJson() : object;
|
|
} |