Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Transport
implements AsyncIterable<Uint8Array>
import { type Transport } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

Properties

readonly
isClosed: boolean
readonly
lang: string
readonly
version: string
readonly
optional
closeError: Error

Methods

connect(server: Server, opts: ConnectionOptions): Promise<void>
[[Symbol.asyncIterator]](): AsyncIterableIterator<Uint8Array>
isEncrypted(): boolean
send(frame: Uint8Array): void
close(err?: Error): Promise<void>
disconnect(): void
closed(): Promise<void | Error>
discard(): void