4de552437d
Previously, userid was generated by the "/login" route and passed along. This commit completely removes the uuid "userid" (and disables the LoginController too and any Jwt check). "userid" is replaced by the "socket id" of the connection. So a user is now identified using a socket id, which is unique for a given connection.
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
import {Socket} from "socket.io";
|
|
import {PointInterface} from "./PointInterface";
|
|
import {Identificable} from "./Identificable";
|
|
|
|
export interface ExSocketInterface extends Socket, Identificable {
|
|
token: any;
|
|
roomId: string;
|
|
webRtcRoomId: string;
|
|
//userId: string;
|
|
name: string;
|
|
character: string;
|
|
position: PointInterface;
|
|
}
|