websocket

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketEngine

type WebSocketEngine struct {
	*common.BaseEngine
	// contains filtered or unexported fields
}

func NewWebSocketEngine

func NewWebSocketEngine(
	ctx context.Context,
	endpoint string,
	opts ...common.Option,
) (*WebSocketEngine, error)

func (*WebSocketEngine) Close

func (e *WebSocketEngine) Close() error

func (*WebSocketEngine) CreateClient

func (e *WebSocketEngine) CreateClient(accessKey string, options ...common.ClientOption) error

func (*WebSocketEngine) Publish

func (e *WebSocketEngine) Publish(
	eventName string,
	recipients []string,
	payload map[string]interface{},
	metadata *common.EventMetadata,
	options *common.PublishOptions,
) (string, error)

func (*WebSocketEngine) Subscribe

func (e *WebSocketEngine) Subscribe(eventName string, options *common.SubscribeOptions) (common.Subscription, error)

Jump to

Keyboard shortcuts

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