wswasm

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSClient

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

func NewWSClient

func NewWSClient(url string, h WSInterface) WSClient

func (*WSClient) Connect

func (w *WSClient) Connect()

func (*WSClient) Send

func (w *WSClient) Send(s string)

type WSInterface

type WSInterface interface {
	HandleMessage(string)
	HandleOnOpen()
	HandleClose()
}

Jump to

Keyboard shortcuts

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