2021-02-02 12:05:47 +01:00
|
|
|
package ndt7
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/gorilla/websocket"
|
|
|
|
)
|
|
|
|
|
2022-05-30 23:14:07 +02:00
|
|
|
// weConn is the interface of gorilla/websocket.Conn
|
|
|
|
type wsConn interface {
|
2021-02-02 12:05:47 +01:00
|
|
|
NextReader() (int, io.Reader, error)
|
|
|
|
SetReadDeadline(time.Time) error
|
|
|
|
SetReadLimit(int64)
|
|
|
|
SetWriteDeadline(time.Time) error
|
|
|
|
WritePreparedMessage(*websocket.PreparedMessage) error
|
|
|
|
}
|