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.
|
package gws_server |
|
|
|
import ( |
|
"github.com/lxzan/gws" |
|
) |
|
|
|
type gwsConn struct { |
|
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) |
|
}
|
|
|