Skip to content

Commit

Permalink
wspb: Remove
Browse files Browse the repository at this point in the history
The library we're currently using for protobufs is deprecated. Doesn't belong in the library core
anyway.

Closes #311
Updates #297
  • Loading branch information
nhooyr committed Oct 13, 2023
1 parent e305027 commit ac38512
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 94 deletions.
21 changes: 0 additions & 21 deletions conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import (
"time"

"github.com/gin-gonic/gin"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/duration"

"nhooyr.io/websocket"
"nhooyr.io/websocket/internal/errd"
Expand All @@ -27,7 +25,6 @@ import (
"nhooyr.io/websocket/internal/test/xrand"
"nhooyr.io/websocket/internal/xsync"
"nhooyr.io/websocket/wsjson"
"nhooyr.io/websocket/wspb"
)

func TestConn(t *testing.T) {
Expand Down Expand Up @@ -267,24 +264,6 @@ func TestConn(t *testing.T) {
err = c1.Close(websocket.StatusNormalClosure, "")
assert.Success(t, err)
})

t.Run("wspb", func(t *testing.T) {
tt, c1, c2 := newConnTest(t, nil, nil)

tt.goEchoLoop(c2)

exp := ptypes.DurationProto(100)
err := wspb.Write(tt.ctx, c1, exp)
assert.Success(t, err)

act := &duration.Duration{}
err = wspb.Read(tt.ctx, c1, act)
assert.Success(t, err)
assert.Equal(t, "read msg", exp, act)

err = c1.Close(websocket.StatusNormalClosure, "")
assert.Success(t, err)
})
}

func TestWasm(t *testing.T) {
Expand Down
73 changes: 0 additions & 73 deletions wspb/wspb.go

This file was deleted.

0 comments on commit ac38512

Please sign in to comment.