@aimee-blue/ab-service-kit
Version:
Aimee Blue Service Template
1 lines • 758 B
Source Map (JSON)
{"version":3,"sources":["../../../src/shared/sockets/types.ts"],"names":["SOCKET_COMPLETE_WARNING_TIMEOUT","SOCKET_CLOSE_WAIT_TIMEOUT"],"mappings":";;;;;;AAIO,MAAMA,+BAA+B,GAAG,IAAxC;;AACA,MAAMC,yBAAyB,GAAG,IAAlC","sourcesContent":["import WebSocket from 'ws';\nimport * as http from 'http';\nimport * as https from 'https';\n\nexport const SOCKET_COMPLETE_WARNING_TIMEOUT = 5000;\nexport const SOCKET_CLOSE_WAIT_TIMEOUT = 7500;\n\nexport type SocketWithInfo = WebSocket & { id: string; closingByKit: boolean };\n\nexport type MessageWithInfo = http.IncomingMessage & { id: string };\n\nexport type Server = http.Server | https.Server;\n\nexport type SocketHandler = (\n socket: SocketWithInfo,\n request: MessageWithInfo\n) => void;\n"],"file":"types.js"}