Last change
on this file since 822 was 822, checked in by yakumo.izuru, 22 months ago |
Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
451 bytes
|
Rev | Line | |
---|
[822] | 1 | package websocket
|
---|
| 2 |
|
---|
| 3 | import (
|
---|
| 4 | "errors"
|
---|
| 5 | "net/http"
|
---|
| 6 | )
|
---|
| 7 |
|
---|
| 8 | // AcceptOptions represents Accept's options.
|
---|
| 9 | type AcceptOptions struct {
|
---|
| 10 | Subprotocols []string
|
---|
| 11 | InsecureSkipVerify bool
|
---|
| 12 | OriginPatterns []string
|
---|
| 13 | CompressionMode CompressionMode
|
---|
| 14 | CompressionThreshold int
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | // Accept is stubbed out for Wasm.
|
---|
| 18 | func Accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (*Conn, error) {
|
---|
| 19 | return nil, errors.New("unimplemented")
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.