import { ServerOptions } from 'socket.io' ; export const API_SOCKET_SERVER_CONFIG = { serveClient : false , pingTimeout : 5000 , pingInterval : 10000 , } ; export const CORE_SOCKET_SERVER_CONFIG = { ... API_SOCKET_SERVER_CONFIG } ; export const CORE_SOCKET_CLIENT_CONFIG = { transports : [ 'websocket' , ] , } ; export const PEER_SOCKET_CLIENT_CONFIG = { transports : [ 'websocket' , ] , reconnection : false , timeout : 10000 , } ; export const PEER_SOCKET_SERVER_CONFIG = { ... API_SOCKET_SERVER_CONFIG , transports : [ 'websocket' , ] , } ; export const SOCKET_TIMEOUT_MS = 10000 ;