good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websocket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
websocket
Commits
b33d48cb
Unverified
Commit
b33d48cb
authored
5 years ago
by
Anmol Sethi
Browse files
Options
Downloads
Patches
Plain Diff
Minor cleanup
parent
0ea94666
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ci/test.mk
+1
-1
1 addition, 1 deletion
ci/test.mk
conn.go
+0
-2
0 additions, 2 deletions
conn.go
read.go
+1
-1
1 addition, 1 deletion
read.go
ws_js.go
+0
-12
0 additions, 12 deletions
ws_js.go
with
2 additions
and
16 deletions
ci/test.mk
+
1
−
1
View file @
b33d48cb
...
@@ -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
This diff is collapsed.
Click to expand it.
conn.go
+
0
−
2
View file @
b33d48cb
// +build !js
package
websocket
package
websocket
// MessageType represents the type of a WebSocket message.
// MessageType represents the type of a WebSocket message.
...
...
This diff is collapsed.
Click to expand it.
read.go
+
1
−
1
View file @
b33d48cb
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
ws_js.go
+
0
−
12
View file @
b33d48cb
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment