mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-29 03:44:40 +00:00
add heartbeats, better websocket disconnection handling
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import WebSocket from 'ws';
|
||||
import {ClientID} from '../core/Schemas';
|
||||
import { ClientID } from '../core/Schemas';
|
||||
|
||||
|
||||
export class Client {
|
||||
|
||||
public lastPing: number
|
||||
|
||||
constructor(
|
||||
public readonly id: ClientID,
|
||||
public readonly ip: string | null,
|
||||
public readonly ws: WebSocket
|
||||
public readonly ws: WebSocket,
|
||||
) { }
|
||||
}
|
||||
Reference in New Issue
Block a user