Skip to main content
Home

@wsx/client@0.0.16
Built and signed on GitHub Actions

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

This package works with Cloudflare Workers, Deno, Bun, BrowsersIt is unknown whether this package works with Node.js
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 Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.0.16)

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@wsx/client

Import symbol

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

Import directly with a jsr specifier

import * as client from "jsr:@wsx/client";

Add Package

pnpm i jsr:@wsx/client
or (using pnpm 10.8 or older)
pnpm dlx jsr add @wsx/client

Import symbol

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

Add Package

yarn add jsr:@wsx/client
or (using Yarn 4.8 or older)
yarn dlx jsr add @wsx/client

Import symbol

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

Add Package

vlt install jsr:@wsx/client

Import symbol

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

Add Package

npx jsr add @wsx/client

Import symbol

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

Add Package

bunx jsr add @wsx/client

Import symbol

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