server

package
v0.0.0-...-e733997 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func StartLocalServer

func StartLocalServer()

func WsRequest

func WsRequest(w http.ResponseWriter, r *http.Request)

Types

type Client

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

func NewClient

func NewClient(conn *websocket.Conn) *Client

未来如果需要支持多客户端时可以用得上

func SingleNewClient

func SingleNewClient(conn *websocket.Conn) *Client

唯一客户端

Jump to

Keyboard shortcuts

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