import { WebSocketServer } from "https://deno.land/x/sptaki@1.2.0/servers/WebSocketServer.d.ts";
Constructors
new
WebSocketServer(logger: ILogger,
randomUtil: RandomUtil,
configServer: ConfigServer,
localisationService: LocalisationService,
jsonUtil: JsonUtil,
httpServerHelper: HttpServerHelper,
profileHelper: ProfileHelper,
Properties
protected
configServer: ConfigServerprotected
defaultNotification: INotificationprotected
httpConfig: IHttpConfigprotected
httpServerHelper: HttpServerHelperprotected
jsonUtil: JsonUtilprotected
localisationService: LocalisationServiceprotected
logger: ILoggerprotected
profileHelper: ProfileHelperprotected
randomUtil: RandomUtilMethods
protected
getRandomisedMessage(): stringprotected
wsOnConnection(ws: WebSocket.WebSocket, req: IncomingMessage): voidgetSessionWebSocket(sessionID: string): WebSocket.WebSocket
getWebSocketServer(): WebSocket.Server
isConnectionWebSocket(sessionID: string): boolean
sendMessage(sessionID: string, output: INotification): void
setupWebSocket(httpServer: http.Server): void