wsjson

package
v0.2.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, c *websocket.Conn, v interface{}) error

Read reads a JSON message from c into v. It will reuse buffers in between calls to avoid allocations.

func Write

func Write(ctx context.Context, c *websocket.Conn, v interface{}) error

Write writes the JSON message v to c. It will reuse buffers in between calls to avoid allocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL