transceiver

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketTransceiverStub

type WebSocketTransceiverStub struct {
	SendCalled              func(payload []byte, topic string, conn websocket.WSConClient) error
	CloseCalled             func() error
	SetPayloadHandlerCalled func(handler websocket.PayloadHandler) error
	ListenCalled            func(conn websocket.WSConClient) (closed bool)
}

WebSocketTransceiverStub -

func (*WebSocketTransceiverStub) Close

func (w *WebSocketTransceiverStub) Close() error

Close -

func (*WebSocketTransceiverStub) Listen

func (w *WebSocketTransceiverStub) Listen(conn websocket.WSConClient) (closed bool)

Listen -

func (*WebSocketTransceiverStub) Send

func (w *WebSocketTransceiverStub) Send(payload []byte, topic string, conn websocket.WSConClient) error

Send -

func (*WebSocketTransceiverStub) SetPayloadHandler

func (w *WebSocketTransceiverStub) SetPayloadHandler(handler websocket.PayloadHandler) error

SetPayloadHandler -

Jump to

Keyboard shortcuts

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