Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FudgeServer

Manages the websocket connections to FudgeClients, their ids and login names and keeps track of the peer to peer connections between them. Processes messages from the clients in the format FudgeNet.Message according to the controlling fields FudgeNet.ROUTE and FudgeNet.COMMAND.

author

Falco Böhnke, HFU, 2019 | Jirka Dell'Oro-Friedl, HFU, 2021 TODOs:

  • finalize the tracking of peers, deleted clients may not be removed from peers-array
  • pass messages through the server to other clients to have them use the safe websocket connection

Hierarchy

  • FudgeServer

Index

Constructors

constructor

Properties

clients

clients: {} = {}

Type declaration

idHost

idHost: string

socket

socket: Server

Methods

broadcast

closeDown

  • closeDown(): void

dispatch

logClients

  • logClients(): void

logMessage

  • logMessage(_text: string, _message: Message): void

startUp

  • startUp(_port?: number): void

Generated using TypeDoc