ws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represent web socket server (or http fallback server)

func New

func New(port int, requestsCh chan<- []byte) (*Service, error)

New create new WebSocket server

func (*Service) Call

func (s *Service) Call(name, id string, payload []byte) <-chan []byte

func (*Service) Close

func (s *Service) Close() error

func (*Service) Start

func (s *Service) Start(ctx context.Context) <-chan error

Start WebSocket server

Jump to

Keyboard shortcuts

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