import { WebSocketClient } from '@src/gateway/WebSocketClient' ; import WebSocket from 'ws' ; import { WebSocketClientEvents , WebSocketClientStates } from '@src/constants' ; export function open ( client , event ) { client . status = WebSocketClientStates . CONNECTED ; client . emit ( WebSocketClientEvents . WS_OPEN , event ) ; }