|
@@ -102,7 +102,6 @@ func (e *netError) Timeout() bool { return e.timeout }
|
|
|
|
|
|
|
|
// CloseError represents close frame.
|
|
// CloseError represents close frame.
|
|
|
type CloseError struct {
|
|
type CloseError struct {
|
|
|
-
|
|
|
|
|
// Code is defined in RFC 6455, section 11.7.
|
|
// Code is defined in RFC 6455, section 11.7.
|
|
|
Code int
|
|
Code int
|
|
|
|
|
|
|
@@ -767,7 +766,6 @@ func (c *Conn) SetWriteDeadline(t time.Time) error {
|
|
|
// Read methods
|
|
// Read methods
|
|
|
|
|
|
|
|
func (c *Conn) advanceFrame() (int, error) {
|
|
func (c *Conn) advanceFrame() (int, error) {
|
|
|
-
|
|
|
|
|
// 1. Skip remainder of previous frame.
|
|
// 1. Skip remainder of previous frame.
|
|
|
|
|
|
|
|
if c.readRemaining > 0 {
|
|
if c.readRemaining > 0 {
|