websocket

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(c *Config) *Client

func (*Client) Dial

func (c *Client) Dial() (err error)

func (*Client) Read

func (c *Client) Read() (b []byte, err error)

消费消息

func (*Client) Send

func (c *Client) Send(b []byte)

发送消息

type Config

type Config struct {
	Scheme   string
	Host     string
	Path     string
	Protocol []string
}

Jump to

Keyboard shortcuts

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