przejście z WS na komunikację http

This commit is contained in:
2023-12-02 23:02:08 +01:00
parent a381cf806c
commit 1a8e2231dd
7 changed files with 54 additions and 253 deletions
+2 -4
View File
@@ -1,6 +1,5 @@
import { Socket } from 'socket.io-client';
import Station from '../scripts/interfaces/Station';
import { API, Websocket } from '../typings/api';
import { API } from '../typings/api';
import { Status } from '../typings/common';
export type Availability = 'default' | 'unavailable' | 'nonPublic' | 'abandoned' | 'nonDefault';
@@ -13,7 +12,7 @@ export interface RegionCounters {
export interface StoreState {
stationList: Station[];
activeData: Websocket.ActiveData;
activeData: API.ActiveData.Response;
rollingStockData?: API.RollingStock.Response;
donatorsData: API.Donators.Response;
@@ -31,7 +30,6 @@ export interface StoreState {
trainCount: number;
stationCount: number;
webSocket?: Socket;
isOffline: boolean;
dispatcherStatsName: string;