fastify-uws
Version:
A performant HTTP and WebSocket server for Fastify with uWebSockets.
2 lines (1 loc) • 891 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@fastify/error"),R=E("HPE_INVALID_METHOD","Invalid method encountered"),e=E("ERR_HEAD_SET","Cannot set headers after they are sent to the client"),_=E("EADDRINUSE","listen EADDRINUSE: address already in use %s:%s");E("ERR_UPGRADE","Cannot upgrade to WebSocket protocol %o");const D=E("ERR_STREAM_DESTROYED","Stream destroyed");E("ERR_UWS_APP_NOT_FOUND","uWebSockets app not found");const t=E("ERR_ENOTFOUND","getaddrinfo ENOTFOUND %s"),o=E("ERR_SOCKET_BAD_PORT","RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received (%s)"),S=E("ERR_SERVER_DESTROYED","Server destroyed");exports.ERR_ADDRINUSE=_;exports.ERR_ENOTFOUND=t;exports.ERR_HEAD_SET=e;exports.ERR_INVALID_METHOD=R;exports.ERR_SERVER_DESTROYED=S;exports.ERR_SOCKET_BAD_PORT=o;exports.ERR_STREAM_DESTROYED=D;