ws

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 14 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, version string, 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() <-chan error

Start WebSocket server

Jump to

Keyboard shortcuts

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