webteleport

package module
v0.5.31 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 8 Imported by: 14

README

WebTeleport

go.dev reference License

Documentation

Overview

Package webteleport is a client library for creating webteleport connections that is easy to use:

The URL you pass to Listen should be a [WebTeleport Server](github.com/webteleport/server)

With webteleport, you can easily serve on a public address, even if you are behind a firewall.

For possible use cases, check https://github.com/webteleport/ufo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, relayAddr string) (net.Listener, error)

Listen calls [Dial] to create a [Listener], which is essentially a wrapper struct around a webtransport session, which in turn is able to spawn arbitrary number of streams that implements net.Conn

It is modelled after net.Listen, however it doesn't require the caller to be able to bind to a local port.

The returned Listener can be imagined to be bound to a remote net.Addr, which can be obtained using the [Listener.Addr] method

Types

This section is empty.

Directories

Path Synopsis
cmd
transport
tcp

Jump to

Keyboard shortcuts

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