good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit b33d48cb authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Minor cleanup

parent 0ea94666
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,6 @@ coveralls: gotest ...@@ -12,6 +12,6 @@ coveralls: gotest
goveralls -coverprofile=ci/out/coverage.prof goveralls -coverprofile=ci/out/coverage.prof
gotest: gotest:
go test -covermode=count -coverprofile=ci/out/coverage.prof -coverpkg=./... $${GOTESTFLAGS-} ./... go test -timeout=30m -covermode=count -coverprofile=ci/out/coverage.prof -coverpkg=./... $${GOTESTFLAGS-} ./...
sed -i '/stringer\.go/d' ci/out/coverage.prof sed -i '/stringer\.go/d' ci/out/coverage.prof
sed -i '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof sed -i '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
// +build !js
package websocket package websocket
// MessageType represents the type of a WebSocket message. // MessageType represents the type of a WebSocket message.
......
...@@ -120,7 +120,7 @@ func (mr *msgReader) flateContextTakeover() bool { ...@@ -120,7 +120,7 @@ func (mr *msgReader) flateContextTakeover() bool {
} }
func (c *Conn) readRSV1Illegal(h header) bool { func (c *Conn) readRSV1Illegal(h header) bool {
// If compression is disabled, rsv1 is always illegal. // If compression is disabled, rsv1 is illegal.
if !c.flate() { if !c.flate() {
return true return true
} }
......
...@@ -17,18 +17,6 @@ import ( ...@@ -17,18 +17,6 @@ import (
"nhooyr.io/websocket/internal/xsync" "nhooyr.io/websocket/internal/xsync"
) )
// MessageType represents the type of a WebSocket message.
// See https://tools.ietf.org/html/rfc6455#section-5.6
type MessageType int
// MessageType constants.
const (
// MessageText is for UTF-8 encoded text messages like JSON.
MessageText MessageType = iota + 1
// MessageBinary is for binary messages like protobufs.
MessageBinary
)
// Conn provides a wrapper around the browser WebSocket API. // Conn provides a wrapper around the browser WebSocket API.
type Conn struct { type Conn struct {
ws wsjs.WebSocket ws wsjs.WebSocket
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment