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