File tree Expand file tree Collapse file tree 4 files changed +2
-16
lines changed
Expand file tree Collapse file tree 4 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ coveralls: gotest
1212 goveralls -coverprofile=ci/out/coverage.prof
1313
1414gotest :
15- go test -covermode=count -coverprofile=ci/out/coverage.prof -coverpkg=./... $$ {GOTESTFLAGS-} ./...
15+ go test -timeout=30m - covermode=count -coverprofile=ci/out/coverage.prof -coverpkg=./... $$ {GOTESTFLAGS-} ./...
1616 sed -i ' /stringer\.go/d' ci/out/coverage.prof
1717 sed -i ' /nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
Original file line number Diff line number Diff line change 1- // +build !js
2-
31package websocket
42
53// MessageType represents the type of a WebSocket message.
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ func (mr *msgReader) flateContextTakeover() bool {
120120}
121121
122122func (c * Conn ) readRSV1Illegal (h header ) bool {
123- // If compression is disabled, rsv1 is always illegal.
123+ // If compression is disabled, rsv1 is illegal.
124124 if ! c .flate () {
125125 return true
126126 }
Original file line number Diff line number Diff line change @@ -17,18 +17,6 @@ import (
1717 "nhooyr.io/websocket/internal/xsync"
1818)
1919
20- // MessageType represents the type of a WebSocket message.
21- // See https://tools.ietf.org/html/rfc6455#section-5.6
22- type MessageType int
23-
24- // MessageType constants.
25- const (
26- // MessageText is for UTF-8 encoded text messages like JSON.
27- MessageText MessageType = iota + 1
28- // MessageBinary is for binary messages like protobufs.
29- MessageBinary
30- )
31-
3220// Conn provides a wrapper around the browser WebSocket API.
3321type Conn struct {
3422 ws wsjs.WebSocket
You can’t perform that action at this time.
0 commit comments