implemented the admin websocket
now send data
This commit is contained in:
parent
84566f08f3
commit
75d9ed8dfa
8 changed files with 124 additions and 28 deletions
|
@ -85,7 +85,7 @@ export class GameRoom {
|
|||
}
|
||||
|
||||
public join(socket : ExSocketInterface, userPosition: PointInterface): void {
|
||||
const user = new User(socket.userId, userPosition, false, this.positionNotifier, socket);
|
||||
const user = new User(socket.userId, socket.userUuid, userPosition, false, this.positionNotifier, socket);
|
||||
this.users.set(socket.userId, user);
|
||||
// Let's call update position to trigger the join / leave room
|
||||
//this.updatePosition(socket, userPosition);
|
||||
|
|
|
@ -12,6 +12,7 @@ export class User implements Movable {
|
|||
|
||||
public constructor(
|
||||
public id: number,
|
||||
public uuid: string,
|
||||
private position: PointInterface,
|
||||
public silent: boolean,
|
||||
private positionNotifier: PositionNotifier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue