type github.com/coder/websocket.Conn
55 uses
github.com/coder/websocket (current package)
accept.go#L102: func Accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (*Conn, error) {
accept.go#L106: func accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (_ *Conn, err error) {
close.go#L99: func (c *Conn) Close(code StatusCode, reason string) (err error) {
close.go#L132: func (c *Conn) CloseNow() (err error) {
close.go#L157: func (c *Conn) closeHandshake(code StatusCode, reason string) error {
close.go#L170: func (c *Conn) writeClose(code StatusCode, reason string) error {
close.go#L198: func (c *Conn) waitCloseHandshake() error {
close.go#L230: func (c *Conn) waitGoroutines() error {
close.go#L324: func (c *Conn) casClosing() bool {
close.go#L328: func (c *Conn) isClosed() bool {
conn.go#L43: type Conn struct {
conn.go#L104: func newConn(cfg connConfig) *Conn {
conn.go#L105: c := &Conn{
conn.go#L138: runtime.SetFinalizer(c, func(c *Conn) {
conn.go#L147: func (c *Conn) Subprotocol() string {
conn.go#L151: func (c *Conn) close() error {
conn.go#L171: func (c *Conn) setupWriteTimeout(ctx context.Context) {
conn.go#L179: func (c *Conn) clearWriteTimeout() {
conn.go#L183: func (c *Conn) setupReadTimeout(ctx context.Context) {
conn.go#L191: func (c *Conn) clearReadTimeout() {
conn.go#L202: func (c *Conn) flate() bool {
conn.go#L213: func (c *Conn) Ping(ctx context.Context) error {
conn.go#L223: func (c *Conn) ping(ctx context.Context, p string) error {
conn.go#L252: c *Conn
conn.go#L256: func newMu(c *Conn) *mu {
dial.go#L120: func Dial(ctx context.Context, u string, opts *DialOptions) (*Conn, *http.Response, error) {
dial.go#L124: func dial(ctx context.Context, urls string, opts *DialOptions, rand io.Reader) (_ *Conn, _ *http.Response, err error) {
netconn.go#L48: func NetConn(ctx context.Context, c *Conn, msgType MessageType) net.Conn {
netconn.go#L97: c *Conn
read.go#L35: func (c *Conn) Reader(ctx context.Context) (MessageType, io.Reader, error) {
read.go#L41: func (c *Conn) Read(ctx context.Context) (MessageType, []byte, error) {
read.go#L64: func (c *Conn) CloseRead(ctx context.Context) context.Context {
read.go#L97: func (c *Conn) SetReadLimit(n int64) {
read.go#L109: func newMsgReader(c *Conn) *msgReader {
read.go#L171: func (c *Conn) readRSV1Illegal(h header) bool {
read.go#L183: func (c *Conn) readLoop(ctx context.Context) (header, error) {
read.go#L226: func (c *Conn) prepareRead(ctx context.Context, err *error) (func(), error) {
read.go#L259: func (c *Conn) readFrameHeader(ctx context.Context) (_ header, err error) {
read.go#L274: func (c *Conn) readFramePayload(ctx context.Context, p []byte) (_ int, err error) {
read.go#L289: func (c *Conn) handleControl(ctx context.Context, h header) (err error) {
read.go#L368: func (c *Conn) reader(ctx context.Context) (_ MessageType, _ io.Reader, err error) {
read.go#L398: c *Conn
read.go#L500: c *Conn
read.go#L506: func newLimitReader(c *Conn, r io.Reader, limit int64) *limitReader {
write.go#L28: func (c *Conn) Writer(ctx context.Context, typ MessageType) (io.WriteCloser, error) {
write.go#L42: func (c *Conn) Write(ctx context.Context, typ MessageType, p []byte) error {
write.go#L51: c *Conn
write.go#L65: func newMsgWriter(c *Conn) *msgWriter {
write.go#L94: func (c *Conn) writer(ctx context.Context, typ MessageType) (io.WriteCloser, error) {
write.go#L102: func (c *Conn) write(ctx context.Context, typ MessageType, p []byte) (int, error) {
write.go#L231: func (c *Conn) writeControl(ctx context.Context, opcode opcode, p []byte) error {
write.go#L243: func (c *Conn) writeFrame(ctx context.Context, fin bool, flate bool, opcode opcode, p []byte) (_ int, err error) {
write.go#L329: func (c *Conn) writeFramePayload(p []byte) (n int, err error) {
write.go#L382: func (c *Conn) writeError(code StatusCode, err error) {
github.com/gotd/td/wsutil
conn.go#L11: func NetConn(c *websocket.Conn) net.Conn {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |