websockets

package
v1.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReadBufferSize is the read buffer size for the socket
	ReadBufferSize = "readBufferSize"
	// WriteBufferSize is the write buffer size for the socket
	WriteBufferSize = "writeBufferSize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSockets

type WebSockets struct {
	// contains filtered or unexported fields
}

func (*WebSockets) Capabilities

func (ws *WebSockets) Capabilities() *events.Capabilities

func (*WebSockets) DeliveryRequest

func (ws *WebSockets) DeliveryRequest(connID string, sub *core.Subscription, event *core.EventDelivery, data core.DataArray) error

func (*WebSockets) GetStatus added in v1.0.0

func (ws *WebSockets) GetStatus() *core.WebSocketStatus

func (*WebSockets) Init

func (ws *WebSockets) Init(ctx context.Context, config config.Section) error

func (*WebSockets) InitConfig added in v1.1.0

func (ws *WebSockets) InitConfig(config config.Section)

func (*WebSockets) Name

func (ws *WebSockets) Name() string

func (*WebSockets) ServeHTTP

func (ws *WebSockets) ServeHTTP(res http.ResponseWriter, req *http.Request)

func (*WebSockets) SetAuthorizer added in v1.1.0

func (ws *WebSockets) SetAuthorizer(auth core.Authorizer)

func (*WebSockets) SetHandler added in v1.1.0

func (ws *WebSockets) SetHandler(namespace string, handler events.Callbacks) error

func (*WebSockets) ValidateOptions

func (ws *WebSockets) ValidateOptions(options *core.SubscriptionOptions) error

func (*WebSockets) WaitClosed

func (ws *WebSockets) WaitClosed()

Jump to

Keyboard shortcuts

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