UNPKG

@firtoz/socka

Version:

Standard Schema–first WebSocket RPC for TypeScript — Bun, Hono, Node ws, Cloudflare Workers, Durable Objects

11 lines (8 loc) • 1.24 kB
export { D as DecodedSockaWire, I as InferSockaHandlers, b as InferSockaPushHandlers, c as InferSockaPushPayload, d as InferSockaSend, R as RESERVED_SOCKA_PROCEDURE_NAMES, e as ReservedSockaProcedureName, f as SOCKA_WIRE_VERSION, g as SockaClientRequestFrame, h as SockaContract, S as SockaContractBound, i as SockaContractConfig, j as SockaContractConfigBound, k as SockaError, l as SockaProcedureDef, m as SockaReportError, n as SockaServerErrorFrame, o as SockaServerEventFrame, p as SockaServerResponseFrame, q as SockaWireError, a as SockaWireFormat, r as SockaWireFrame, V as ValidateSockaCallKeys, s as decodeSockaWire, t as defaultReportError, u as defineSocka, v as encodeClientRequest, w as encodeServerError, x as encodeServerEvent, y as encodeServerResponse, z as encodeSockaWire, A as parseWirePayload, B as reportSockaError } from '../socka-report-error-BALZPjd1.js'; import { StandardSchemaV1 } from '@standard-schema/spec'; /** * Validates {@link value} with a Standard Schema v1 schema and returns the output, * or throws an {@link Error} whose message aggregates issue messages. */ declare function parseStandardSchema<T>(schema: StandardSchemaV1<unknown, T>, value: unknown): Promise<T>; export { parseStandardSchema };