2020-04-04 14:05:18 +02:00
|
|
|
import {Socket} from "socket.io";
|
2020-04-04 16:25:03 +02:00
|
|
|
import {PointInterface} from "./PointInterface";
|
2020-05-14 23:19:48 +02:00
|
|
|
import {Identificable} from "./Identificable";
|
2020-06-09 23:07:19 +02:00
|
|
|
import {TokenInterface} from "../../Controller/AuthenticateController";
|
2020-04-04 14:05:18 +02:00
|
|
|
|
2020-05-14 23:19:48 +02:00
|
|
|
export interface ExSocketInterface extends Socket, Identificable {
|
2020-06-10 12:32:39 +02:00
|
|
|
token: string;
|
2020-04-04 19:25:08 +02:00
|
|
|
roomId: string;
|
2020-04-29 01:40:32 +02:00
|
|
|
webRtcRoomId: string;
|
2020-05-23 15:04:25 +02:00
|
|
|
userId: string;
|
2020-05-03 22:24:14 +02:00
|
|
|
name: string;
|
2020-07-28 17:43:33 +02:00
|
|
|
characterLayers: string[];
|
2020-04-04 16:25:03 +02:00
|
|
|
position: PointInterface;
|
2020-09-11 09:56:05 +02:00
|
|
|
isArtillery: boolean; // Whether this socket is opened by Artillery for load testing (hack)
|
2020-05-08 15:18:22 +02:00
|
|
|
}
|