MCPcopy Create free account

hub / github.com/gorilla/websocket / functions

Functions256 in github.com/gorilla/websocket

↓ 1 callersMethodconnect
connect takes an existing connection to a socks5 proxy server, and commands the server to extend that connection to target, which must be a canonical
x_net_proxy.go:344
↓ 1 callersFunctiondecode
(state int, x rune, b byte)
examples/autobahn/server.go:256
↓ 1 callersMethoddialerForRequest
(host string)
x_net_proxy.go:62
↓ 1 callersFunctiondoHandshake
(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config)
tls_handshake.go:11
↓ 1 callersMethodendMessage
(err error)
conn.go:540
↓ 1 callersFunctiongenerateChallengeKey
()
util.go:26
↓ 1 callersMethodhandleProtocolError
(message string)
conn.go:979
↓ 1 callersFunctioninternalError
(ws *websocket.Conn, msg string, err error)
examples/command/main.go:96
↓ 1 callersFunctionisValidCompressionLevel
(level int)
compression.go:40
↓ 1 callersFunctionisValidReceivedCloseCode
(code int)
conn.go:223
↓ 1 callersMethodmakeConns
(numConns int)
conn_broadcast_test.go:58
↓ 1 callersFunctionmaskBytesByByte
(key [4]byte, pos int, b []byte)
mask_test.go:14
↓ 1 callersFunctionnewBroadcastBench
(usePrepared, compression bool)
conn_broadcast_test.go:46
↓ 1 callersFunctionnewBroadcastConn
(c *Conn)
conn_broadcast_test.go:39
↓ 1 callersFunctionnewHub
()
examples/chat/hub.go:23
↓ 1 callersFunctionnextTokenOrQuoted
nextTokenOrQuoted returns the leading token or quoted string per RFC 2616 and the string following the token or quoted string.
util.go:141
↓ 1 callersFunctionnotzero
(b []byte)
mask_test.go:22
↓ 1 callersFunctionping
(ws *websocket.Conn, done chan struct{})
examples/command/main.go:81
↓ 1 callersFunctionprocessMessage
(mt int, p []byte)
example_test.go:41
↓ 1 callersFunctionproxy_NewPerHost
NewPerHost returns a PerHost Dialer that directs connections to either defaultDialer or bypass, depending on whether the connection matches one of the
x_net_proxy.go:44
↓ 1 callersFunctionproxy_RegisterDialerType
RegisterDialerType takes a URL scheme and a function to generate Dialers from a URL with that scheme and a forwarding Dialer. Registered schemes are u
x_net_proxy.go:205
↓ 1 callersFunctionproxy_SOCKS5
SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address with an optional username and password. See RFC 1928 and RFC 1929.
x_net_proxy.go:275
↓ 1 callersFunctionpumpStdin
(ws *websocket.Conn, w io.Writer)
examples/command/main.go:42
↓ 1 callersFunctionpumpStdout
(ws *websocket.Conn, r io.Reader, done chan struct{})
examples/command/main.go:59
↓ 1 callersMethodread
(n int)
conn.go:370
↓ 1 callersMethodreadPump
readPump pumps messages from the websocket connection to the hub. The application runs readPump in a per-connection goroutine. The application ensure
examples/chat/client.go:56
↓ 1 callersFunctionreader
(ws *websocket.Conn)
examples/filewatch/main.go:59
↓ 1 callersMethodreturnError
(w http.ResponseWriter, r *http.Request, status int, reason string)
server.go:77
↓ 1 callersMethodrun
()
examples/chat/hub.go:32
↓ 1 callersMethodselectSubprotocol
(r *http.Request, responseHeader http.Header)
server.go:101
↓ 1 callersFunctionserveWs
serveWs handles websocket requests from the peer.
examples/chat/client.go:124
↓ 1 callersMethodwriteBufs
(bufs ...[]byte)
conn.go:405
↓ 1 callersMethodwritePump
writePump pumps messages from the hub to the websocket connection. A goroutine running writePump is started for each connection. The application ensu
examples/chat/client.go:82
↓ 1 callersFunctionwriter
(ws *websocket.Conn, lastMod time.Time)
examples/filewatch/main.go:72
FunctionBenchmarkBroadcast
(b *testing.B)
conn_broadcast_test.go:101
FunctionBenchmarkMaskBytes
(b *testing.B)
mask_test.go:47
FunctionBenchmarkWriteNoCompression
(b *testing.B)
compression_test.go:44
FunctionBenchmarkWriteWithCompression
(b *testing.B)
compression_test.go:55
MethodClose
()
conn.go:727
MethodClose
()
conn.go:1085
MethodClose
()
compression.go:105
MethodClose
()
compression_test.go:13
MethodCloseHandler
CloseHandler returns the current close handler
conn.go:1117
MethodDial
(network, addr string)
proxy.go:19
MethodDial
(network string, addr string)
proxy.go:34
MethodDial
(network, addr string)
x_net_proxy.go:26
MethodDial
Dial connects to the address addr on the given network through either defaultDialer or bypass.
x_net_proxy.go:53
MethodDial
Dial connects to the address addr on the given network via the SOCKS5 proxy.
x_net_proxy.go:323
MethodEnableWriteCompression
EnableWriteCompression enables and disables write compression of subsequent text and binary messages. This function is a noop if compression was not n
conn.go:1201
MethodError
()
conn.go:113
FunctionExampleIsUnexpectedCloseError
The websocket.IsUnexpectedCloseError function is useful for identifying application and protocol errors. This server application works with a client
example_test.go:28
MethodGet
()
conn_test.go:193
MethodGet
()
x_net_proxy.go:259
MethodLocalAddr
()
client_server_test.go:370
MethodLocalAddr
LocalAddr returns the local network address.
conn.go:349
MethodNetwork
()
conn_test.go:43
FunctionNewClient
NewClient creates a new client connection using the given net connection. The URL u specifies the host and request URI. Use requestHeader to specify t
client.go:39
MethodPingHandler
PingHandler returns the current ping handler
conn.go:1147
MethodPongHandler
PongHandler returns the current pong handler
conn.go:1174
MethodPut
(v interface{})
conn_test.go:199
MethodRead
(p []byte)
client_server_test.go:362
MethodRead
(p []byte)
compression.go:126
MethodRead
(p []byte)
join.go:25
MethodRead
(p []byte)
examples/autobahn/server.go:195
MethodReadFrom
(r io.Reader)
conn.go:702
MethodRemoteAddr
()
client_server_test.go:371
MethodRemoteAddr
RemoteAddr returns the remote network address.
conn.go:354
MethodSetReadDeadline
(t time.Time)
conn_test.go:33
MethodSetWriteDeadline
(t time.Time)
conn_test.go:34
MethodSetWriteDeadline
(t time.Time)
prepared.go:102
FunctionTestAddrs
(t *testing.T)
conn_test.go:555
FunctionTestBadMethod
(t *testing.T)
client_server_test.go:457
FunctionTestBufioReadBytes
(t *testing.T)
conn_test.go:575
FunctionTestBufioReuse
(t *testing.T)
server_test.go:92
FunctionTestCheckSameOrigin
(t *testing.T)
server_test.go:66
FunctionTestCloseError
(t *testing.T)
conn_test.go:615
FunctionTestCloseFrameBeforeFinalMessageFrame
(t *testing.T)
conn_test.go:352
FunctionTestConcurrentWritePanic
(t *testing.T)
conn_test.go:656
FunctionTestControl
(t *testing.T)
conn_test.go:152
FunctionTestDeprecatedJSON
(t *testing.T)
json_test.go:93
FunctionTestDial
(t *testing.T)
client_server_test.go:229
FunctionTestDialBadHeader
(t *testing.T)
client_server_test.go:438
FunctionTestDialBadOrigin
(t *testing.T)
client_server_test.go:421
FunctionTestDialBadScheme
(t *testing.T)
client_server_test.go:410
FunctionTestDialCompression
(t *testing.T)
client_server_test.go:753
FunctionTestDialCookieJar
(t *testing.T)
client_server_test.go:241
FunctionTestDialExtraTokensInRespHeaders
(t *testing.T)
client_server_test.go:485
FunctionTestDialTLS
(t *testing.T)
client_server_test.go:303
FunctionTestDialTimeout
(t *testing.T)
client_server_test.go:317
FunctionTestEOFBeforeFinalFrame
(t *testing.T)
conn_test.go:415
FunctionTestEOFWithinFrame
(t *testing.T)
conn_test.go:380
FunctionTestEmptyTracingDialWithContext
(t *testing.T)
client_server_test.go:905
FunctionTestEqualASCIIFold
(t *testing.T)
util_test.go:23
FunctionTestFailedConnectionReadPanic
(t *testing.T)
conn_test.go:683
FunctionTestFraming
(t *testing.T)
conn_test.go:57
FunctionTestHandshake
(t *testing.T)
client_server_test.go:502
FunctionTestHandshakeTimeout
(t *testing.T)
client_server_test.go:373
FunctionTestHandshakeTimeoutInContext
(t *testing.T)
client_server_test.go:389
FunctionTestHost
TestHost tests handling of host names and confirms that it matches net/http.
client_server_test.go:572
FunctionTestHostPortNoPort
(t *testing.T)
client_test.go:22
← previousnext →101–200 of 256, ranked by callers