import { WebSocketClient } from '@src/gateway/WebSocketClient' ; import WebSocket from 'ws' ; import { WebSocketClientEvents } from '@src/constants' ; export function error ( client , event ) { client . emit ( WebSocketClientEvents . WS_ERROR , event ) ; }