X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FUIWebSocketServer.ts;h=96e9a96896be609ff4a09760c33900886e3aa473;hb=6114e6f11b3fb12439d464e142fdf93866982b6c;hp=bc10db1cc785d5659c12418e91288e9a38a6beba;hpb=1f5df42ad17d09d3a1f53f6618eba325a403d7ad;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/UIWebSocketServer.ts b/src/charging-station/UIWebSocketServer.ts index bc10db1c..96e9a968 100644 --- a/src/charging-station/UIWebSocketServer.ts +++ b/src/charging-station/UIWebSocketServer.ts @@ -1,4 +1,4 @@ -import { Protocol, ProtocolCommand, ProtocolRequest, ProtocolVersion } from '../types/UiProtocol'; +import { Protocol, ProtocolCommand, ProtocolRequest, ProtocolVersion } from '../types/UIProtocol'; import WebSocket, { OPEN, Server, ServerOptions } from 'ws'; import AbstractUIService from './ui-websocket-services/AbstractUIService'; @@ -23,7 +23,7 @@ export default class UIWebSocketServer extends Server { } } - public broadcastToClients(message: string | Record): void { + public broadcastToClients(message: string): void { for (const client of this.clients) { if (client?.readyState === OPEN) { client.send(message);