Skip to content

Commit

Permalink
add WsWriteCloser
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed Jul 30, 2024
1 parent 85bf220 commit b0c932a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ type WsWriter interface {
WritePong(data []byte) (err error)
WriteTimeout(op opcode.Opcode, data []byte, t time.Duration) (err error)
}

type WsWriteCloser interface {
WsWriter
Close() error
}

0 comments on commit b0c932a

Please sign in to comment.