Skip to main content

@wsx/client@0.0.12

Client for Wsx framework. RPC, Pub/Sub, routing and end-to-end typesafety for WebSockets

Works with
This package works with Bun
This package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
3 days ago

Client for Wsx framework. RPC, Pub/Sub, routing and end-to-end typesafety for WebSockets

import { Client } from "@wsx/client"
// app is an instance of Wsx
import type { app } from "@my-project/server"

const { routes: {user} } = await Client<typeof app>('localhost:3000')
const newUserId = await user.create.call({ email: "meowningmaster@gmail.com" })
console.info(newUserId)

More examples

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @wsx/client

Import symbol

import * as mod from "@wsx/client";

Add Package

npx jsr add @wsx/client

Import symbol

import * as mod from "@wsx/client";

Add Package

yarn dlx jsr add @wsx/client

Import symbol

import * as mod from "@wsx/client";

Add Package

pnpm dlx jsr add @wsx/client

Import symbol

import * as mod from "@wsx/client";

Add Package

bunx jsr add @wsx/client

Import symbol

import * as mod from "@wsx/client";