gosocketio/vendor/github.com/googollee/go-socket.io/engineio/connect.go

25 lines
468 B
Go
Raw Permalink Normal View History

2023-11-30 17:38:20 +08:00
package engineio
import (
"io"
"net"
"net/http"
"net/url"
"github.com/googollee/go-socket.io/engineio/session"
)
// Conn is connection by client session
type Conn interface {
ID() string
NextReader() (session.FrameType, io.ReadCloser, error)
NextWriter(fType session.FrameType) (io.WriteCloser, error)
Close() error
URL() url.URL
LocalAddr() net.Addr
RemoteAddr() net.Addr
RemoteHeader() http.Header
SetContext(v interface{})
Context() interface{}
}