Skip to main content

latest

flashsocket client library

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
64%
Published
4 months ago (1.0.0)
function createFlashSocket
createFlashSocket(unnamed 0: { url: string; app: string; user: string; }): { channelEvents: { subscribe: (
eventName: string,
cb: (msg: Message) => void,
) => void
; unsubscribe: (
eventName: string,
cb: (msg: Message) => void,
) => void
; }
; trigger: (input: Message) => void; unsubscribeChannel: () => void; }

Parameters

unnamed 0: { url: string; app: string; user: string; }

Return Type

{ channelEvents: { subscribe: (
eventName: string,
cb: (msg: Message) => void,
) => void
; unsubscribe: (
eventName: string,
cb: (msg: Message) => void,
) => void
; }
; trigger: (input: Message) => void; unsubscribeChannel: () => void; }

Add Package

deno add jsr:@arctech/flashsocket

Import symbol

import { createFlashSocket } from "@arctech/flashsocket";

---- OR ----

Import directly with a jsr specifier

import { createFlashSocket } from "jsr:@arctech/flashsocket";

Add Package

npx jsr add @arctech/flashsocket

Import symbol

import { createFlashSocket } from "@arctech/flashsocket";

Add Package

yarn dlx jsr add @arctech/flashsocket

Import symbol

import { createFlashSocket } from "@arctech/flashsocket";

Add Package

pnpm dlx jsr add @arctech/flashsocket

Import symbol

import { createFlashSocket } from "@arctech/flashsocket";

Add Package

bunx jsr add @arctech/flashsocket

Import symbol

import { createFlashSocket } from "@arctech/flashsocket";