wspb

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package wspb provides convenience functions for reading and writing protobuf messages via a websocket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, c *websocket.Conn, m proto.Message) error

Read reads from websocket c into protobuf message m.

func Write

func Write(ctx context.Context, c *websocket.Conn, m proto.Message) error

Write writes protobuf message m to websocket c.

Types

This section is empty.

Jump to

Keyboard shortcuts

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