Message defines a client's channel data.

Hierarchy

Implemented by

Methods

Properties

Methods

  • 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.Write(e.Response, "yourEventId")
    e.Flush()

    Parameters

    Returns void

Properties

data: string | number[]
name: string

Generated using TypeDoc