fbcb48f9ad
- I stocked information user (id, room and position) in socket client. - I created function to send all information every few 10 milliseconds. Note : when the front will be available, we must check the performance of back server.
9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
import {Socket} from "socket.io";
|
|
import {PointInterface} from "./PointInterface";
|
|
|
|
export interface ExSocketInterface extends Socket {
|
|
token: any;
|
|
roomId: string;
|
|
userId: string;
|
|
position: PointInterface;
|
|
} |