Documentation ¶
Overview ¶
Package wsutil provides websocket server utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowOrigins ¶
AllowOriginsGlob returns a function, sutiable for setting WebsocketServer.Upgrader.CheckOrigin, that returns true if: the origin is not set, is equal to the request host, or matches one of the allowed patterns. A pattern is in the form of a shell glob as described here: https://golang.org/pkg/path/filepath/#Match
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.