You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
288 B

package gws_server
import (
"github.com/lxzan/gws"
)
type gwsConn struct {
uid string
conn *gws.Conn
}
func newGwsConn(conn *gws.Conn) *gwsConn {
return &gwsConn{
conn: conn,
}
}
func (c *gwsConn) Write(msg []byte) error {
return c.conn.WriteMessage(gws.OpcodeBinary, msg)
}