Documentation ¶
Index ¶
- type ITransport
- type Polling
- func (p *Polling) GetName() string
- func (p *Polling) HandleDataRequest(r *http.Request, w http.ResponseWriter)
- func (p *Polling) HandlePollRequest(r *http.Request, w http.ResponseWriter) error
- func (p *Polling) HandleRequest(r *http.Request, w http.ResponseWriter)
- func (p *Polling) SetHeaders(r *http.Request, w http.ResponseWriter)
- func (p *Polling) SetReadDeadline(t time.Time) error
- func (p *Polling) SetWriteDeadline(t time.Time) error
- type PollingOptions
- type PollingType
- type Transport
- type TransportOptions
- type WSOptions
- type Websocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITransport ¶
type Polling ¶
type Polling struct { *Transport PollingOptions PollingOptions // contains filtered or unexported fields }
func NewPolling ¶
func NewPolling(opt PollingOptions, sid string) *Polling
func (*Polling) HandleDataRequest ¶
func (p *Polling) HandleDataRequest(r *http.Request, w http.ResponseWriter)
func (*Polling) HandlePollRequest ¶
func (*Polling) HandleRequest ¶
func (p *Polling) HandleRequest(r *http.Request, w http.ResponseWriter)
func (*Polling) SetHeaders ¶
func (p *Polling) SetHeaders(r *http.Request, w http.ResponseWriter)
type PollingOptions ¶
type PollingOptions struct { TransportOptions Type PollingType MaxHttpBufferSize uint64 HttpCompression bool }
type Transport ¶
type Transport struct { SupportsBinary bool // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport(opt TransportOptions) *Transport
func (*Transport) HandleRequest ¶
func (t *Transport) HandleRequest(r *http.Request, w http.ResponseWriter)
type TransportOptions ¶
type TransportOptions struct {
SupportsBinary bool
}
type WSOptions ¶
type WSOptions struct {
TransportOptions
}
Click to show internal directories.
Click to hide internal directories.