Back to Pocketbase

Interface Message

static/jsvm/interfaces/subscriptions.Message.html

latest1.2 KB
Original Source

Interface Message

Message defines a client's channel data.

Hierarchy

Implemented by

Index

Methods

writeSSE

Properties

dataname

Methods

writeSSE

  • writeSSE(w, eventId): void

WriteSSE writes the current message in a SSE format into the provided writer.

For example, writing to a router.Event:

m := Message{Name: "users/create", Data: []byte{...}} m.WriteSSE(e.Response, "yourEventId") e.Flush()Copy

Parameters

w: io.Writer
eventId: string

Returns void

Properties

data

data: string | number[]

name

name: string

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc