Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rsocket/rsocket/Payload.ts>Payload

🦕RSocket Deno module
Latest
class Payload
import { Payload } from "https://deno.land/x/rsocket@0.3.0/rsocket/Payload.ts";

Constructors

new
Payload(data?: Uint8Array | undefined, metadata?: Uint8Array | undefined)

Properties

private
optional
_data: Uint8Array | undefined
private
optional
_metadata: Uint8Array | undefined
data: Uint8Array | undefined
metadata: Uint8Array | undefined

Methods

getDataUtf8(): string | undefined
getMetadataUtf8(): string | undefined

Static Methods

fromText(data: string, metadata: string): Payload