Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionHandler ¶
func OriginMiddlewareFunc ¶
func OriginMiddlewareFunc(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
type WsConnection ¶
func NewWsConnection ¶
func NewWsConnection(conn *websocket.Conn) *WsConnection
func (*WsConnection) Addr ¶
func (this *WsConnection) Addr() string
func (*WsConnection) Close ¶
func (this *WsConnection) Close() error
func (*WsConnection) ReadMsg ¶
func (this *WsConnection) ReadMsg() ([]byte, error)
func (*WsConnection) WriteMsg ¶
func (this *WsConnection) WriteMsg(data []byte) error
WriteMsg send byte array message
type WsProtocol ¶
type WsProtocol struct {
}
func (*WsProtocol) Dial ¶
func (this *WsProtocol) Dial(addr string) (protocol.Connection, error)
func (*WsProtocol) ListenAndServe ¶
func (this *WsProtocol) ListenAndServe(port int64, onConnect func(conn protocol.Connection)) error
Click to show internal directories.
Click to hide internal directories.