Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gorilla/websocket
/ functions
Functions
256 in github.com/gorilla/websocket
⨍
Functions
256
◇
Types & classes
45
↓ 1 callers
Method
connect
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 callers
Function
decode
(state int, x rune, b byte)
examples/autobahn/server.go:256
↓ 1 callers
Method
dialerForRequest
(host string)
x_net_proxy.go:62
↓ 1 callers
Function
doHandshake
(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config)
tls_handshake.go:11
↓ 1 callers
Method
endMessage
(err error)
conn.go:540
↓ 1 callers
Function
generateChallengeKey
()
util.go:26
↓ 1 callers
Method
handleProtocolError
(message string)
conn.go:979
↓ 1 callers
Function
internalError
(ws *websocket.Conn, msg string, err error)
examples/command/main.go:96
↓ 1 callers
Function
isValidCompressionLevel
(level int)
compression.go:40
↓ 1 callers
Function
isValidReceivedCloseCode
(code int)
conn.go:223
↓ 1 callers
Method
makeConns
(numConns int)
conn_broadcast_test.go:58
↓ 1 callers
Function
maskBytesByByte
(key [4]byte, pos int, b []byte)
mask_test.go:14
↓ 1 callers
Function
newBroadcastBench
(usePrepared, compression bool)
conn_broadcast_test.go:46
↓ 1 callers
Function
newBroadcastConn
(c *Conn)
conn_broadcast_test.go:39
↓ 1 callers
Function
newHub
()
examples/chat/hub.go:23
↓ 1 callers
Function
nextTokenOrQuoted
nextTokenOrQuoted returns the leading token or quoted string per RFC 2616 and the string following the token or quoted string.
util.go:141
↓ 1 callers
Function
notzero
(b []byte)
mask_test.go:22
↓ 1 callers
Function
ping
(ws *websocket.Conn, done chan struct{})
examples/command/main.go:81
↓ 1 callers
Function
processMessage
(mt int, p []byte)
example_test.go:41
↓ 1 callers
Function
proxy_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 callers
Function
proxy_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 callers
Function
proxy_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 callers
Function
pumpStdin
(ws *websocket.Conn, w io.Writer)
examples/command/main.go:42
↓ 1 callers
Function
pumpStdout
(ws *websocket.Conn, r io.Reader, done chan struct{})
examples/command/main.go:59
↓ 1 callers
Method
read
(n int)
conn.go:370
↓ 1 callers
Method
readPump
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 callers
Function
reader
(ws *websocket.Conn)
examples/filewatch/main.go:59
↓ 1 callers
Method
returnError
(w http.ResponseWriter, r *http.Request, status int, reason string)
server.go:77
↓ 1 callers
Method
run
()
examples/chat/hub.go:32
↓ 1 callers
Method
selectSubprotocol
(r *http.Request, responseHeader http.Header)
server.go:101
↓ 1 callers
Function
serveWs
serveWs handles websocket requests from the peer.
examples/chat/client.go:124
↓ 1 callers
Method
writeBufs
(bufs ...[]byte)
conn.go:405
↓ 1 callers
Method
writePump
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 callers
Function
writer
(ws *websocket.Conn, lastMod time.Time)
examples/filewatch/main.go:72
Function
BenchmarkBroadcast
(b *testing.B)
conn_broadcast_test.go:101
Function
BenchmarkMaskBytes
(b *testing.B)
mask_test.go:47
Function
BenchmarkWriteNoCompression
(b *testing.B)
compression_test.go:44
Function
BenchmarkWriteWithCompression
(b *testing.B)
compression_test.go:55
Method
Close
()
conn.go:727
Method
Close
()
conn.go:1085
Method
Close
()
compression.go:105
Method
Close
()
compression_test.go:13
Method
CloseHandler
CloseHandler returns the current close handler
conn.go:1117
Method
Dial
(network, addr string)
proxy.go:19
Method
Dial
(network string, addr string)
proxy.go:34
Method
Dial
(network, addr string)
x_net_proxy.go:26
Method
Dial
Dial connects to the address addr on the given network through either defaultDialer or bypass.
x_net_proxy.go:53
Method
Dial
Dial connects to the address addr on the given network via the SOCKS5 proxy.
x_net_proxy.go:323
Method
EnableWriteCompression
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
Method
Error
()
conn.go:113
Function
ExampleIsUnexpectedCloseError
The websocket.IsUnexpectedCloseError function is useful for identifying application and protocol errors. This server application works with a client
example_test.go:28
Method
Get
()
conn_test.go:193
Method
Get
()
x_net_proxy.go:259
Method
LocalAddr
()
client_server_test.go:370
Method
LocalAddr
LocalAddr returns the local network address.
conn.go:349
Method
Network
()
conn_test.go:43
Function
NewClient
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
Method
PingHandler
PingHandler returns the current ping handler
conn.go:1147
Method
PongHandler
PongHandler returns the current pong handler
conn.go:1174
Method
Put
(v interface{})
conn_test.go:199
Method
Read
(p []byte)
client_server_test.go:362
Method
Read
(p []byte)
compression.go:126
Method
Read
(p []byte)
join.go:25
Method
Read
(p []byte)
examples/autobahn/server.go:195
Method
ReadFrom
(r io.Reader)
conn.go:702
Method
RemoteAddr
()
client_server_test.go:371
Method
RemoteAddr
RemoteAddr returns the remote network address.
conn.go:354
Method
SetReadDeadline
(t time.Time)
conn_test.go:33
Method
SetWriteDeadline
(t time.Time)
conn_test.go:34
Method
SetWriteDeadline
(t time.Time)
prepared.go:102
Function
TestAddrs
(t *testing.T)
conn_test.go:555
Function
TestBadMethod
(t *testing.T)
client_server_test.go:457
Function
TestBufioReadBytes
(t *testing.T)
conn_test.go:575
Function
TestBufioReuse
(t *testing.T)
server_test.go:92
Function
TestCheckSameOrigin
(t *testing.T)
server_test.go:66
Function
TestCloseError
(t *testing.T)
conn_test.go:615
Function
TestCloseFrameBeforeFinalMessageFrame
(t *testing.T)
conn_test.go:352
Function
TestConcurrentWritePanic
(t *testing.T)
conn_test.go:656
Function
TestControl
(t *testing.T)
conn_test.go:152
Function
TestDeprecatedJSON
(t *testing.T)
json_test.go:93
Function
TestDial
(t *testing.T)
client_server_test.go:229
Function
TestDialBadHeader
(t *testing.T)
client_server_test.go:438
Function
TestDialBadOrigin
(t *testing.T)
client_server_test.go:421
Function
TestDialBadScheme
(t *testing.T)
client_server_test.go:410
Function
TestDialCompression
(t *testing.T)
client_server_test.go:753
Function
TestDialCookieJar
(t *testing.T)
client_server_test.go:241
Function
TestDialExtraTokensInRespHeaders
(t *testing.T)
client_server_test.go:485
Function
TestDialTLS
(t *testing.T)
client_server_test.go:303
Function
TestDialTimeout
(t *testing.T)
client_server_test.go:317
Function
TestEOFBeforeFinalFrame
(t *testing.T)
conn_test.go:415
Function
TestEOFWithinFrame
(t *testing.T)
conn_test.go:380
Function
TestEmptyTracingDialWithContext
(t *testing.T)
client_server_test.go:905
Function
TestEqualASCIIFold
(t *testing.T)
util_test.go:23
Function
TestFailedConnectionReadPanic
(t *testing.T)
conn_test.go:683
Function
TestFraming
(t *testing.T)
conn_test.go:57
Function
TestHandshake
(t *testing.T)
client_server_test.go:502
Function
TestHandshakeTimeout
(t *testing.T)
client_server_test.go:373
Function
TestHandshakeTimeoutInContext
(t *testing.T)
client_server_test.go:389
Function
TestHost
TestHost tests handling of host names and confirms that it matches net/http.
client_server_test.go:572
Function
TestHostPortNoPort
(t *testing.T)
client_test.go:22
← previous
next →
101–200 of 256, ranked by callers