@firtoz/socka
Version:
Standard Schema–first WebSocket RPC for TypeScript — Bun, Hono, Node ws, Cloudflare Workers, Durable Objects
14 lines (12 loc) • 573 B
JavaScript
export { RESERVED_SOCKA_PROCEDURE_NAMES } from '../chunk-YMT4HAH7.js';
export { SOCKA_WIRE_VERSION, SockaError, SockaWireError, decodeSockaWire, defaultReportError, encodeClientRequest, encodeServerError, encodeServerEvent, encodeServerResponse, encodeSockaWire, parseStandardSchema, parseWirePayload, reportSockaError } from '../chunk-IFIGKR3W.js';
// src/core/contract.ts
function defineSocka(config) {
return {
calls: config.calls,
pushes: config.pushes ?? {}
};
}
export { defineSocka };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map