Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidClient = errors.New("invalid client")
)
Functions ¶
This section is empty.
Types ¶
type Ws ¶
type Ws interface { Broadcast(bytes []byte) Find(id ...string) ([]Client, error) FindOne(id string) (Client, error) Upgrade(req *http.Request, res http.ResponseWriter, id string) error OnRead(fn func(bytes []byte)) Ws MustFind(id ...string) []Client MustFindOne(id string) Client MustUpgrade(req *http.Request, res http.ResponseWriter, id string) }
Click to show internal directories.
Click to hide internal directories.