Merge branch 'develop' of github.com:thecodingmachine/workadventure into codeAPI
This commit is contained in:
@@ -196,7 +196,7 @@ export class RoomConnection implements RoomConnection {
|
||||
|
||||
let interval: ReturnType<typeof setInterval> | undefined = undefined;
|
||||
|
||||
this.socket.onopen = (ev) => {
|
||||
this.socket.onopen = () => {
|
||||
//we manually ping every 20s to not be logged out by the server, even when the game is in background.
|
||||
const pingMessage = PingMessageTsProto.encode({}).finish();
|
||||
interval = setInterval(() => this.socket.send(pingMessage), manualPingDelay);
|
||||
@@ -303,6 +303,7 @@ export class RoomConnection implements RoomConnection {
|
||||
}
|
||||
default: {
|
||||
// Security check: if we forget a "case", the line below will catch the error at compile-time.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const tmp: never = subMessage;
|
||||
}
|
||||
}
|
||||
@@ -490,6 +491,7 @@ export class RoomConnection implements RoomConnection {
|
||||
}
|
||||
default: {
|
||||
// Security check: if we forget a "case", the line below will catch the error at compile-time.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const tmp: never = message;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user