websocket

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 7 Imported by: 1

README

zmq4-transport-plugin-websocket

Implementation of the zmq4/transport.Transport interface for WebSockets (ws and wss)

Documentation

Overview

Package websocket implements the WebSocket transport for ØMQ sockets.

Package websocket implements the WebSocket transport for ØMQ sockets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(ln net.Listener) *listener

Types

type Transport

type Transport struct {
	Secure bool
}

Transport implements the zmq4 transport protocol for WebSockets.

func (Transport) Addr

func (t Transport) Addr(ep string) (addr string, err error)

Addr returns the end-point address.

func (Transport) Dial

func (Transport) Dial(ctx context.Context, dialer transport.Dialer, addr string) (net.Conn, error)

Dial connects to the address on the named network using the provided context.

func (Transport) Listen

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

Listen announces on the provided network address.

Directories

Path Synopsis
cmd module

Jump to

Keyboard shortcuts

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