websocketcapnp

package
v0.0.0-...-6ce3ea9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package websocketcapnp integrates websockets with capnproto.

TODO: this should probably get factored out into its own library/module at some point.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport(conn *websocket.Conn) rpc.Transport

Return an rpc.Transport that sends messages over the websocket connection. Sends each capnproto message in its own websocket binary message, xz-compressed.

func PortCodec

func PortCodec(p Port) transport.Codec

Types

type Port

type Port interface {
	NextWriter() (io.WriteCloser, error)
	NextReader() (io.Reader, error)
	Close() error
}

func WebSocketPort

func WebSocketPort(conn *websocket.Conn) Port

func XZPort

func XZPort(p Port) Port

Jump to

Keyboard shortcuts

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