Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gorilla/websocket
/ types & classes
Types & classes
45 in github.com/gorilla/websocket
⨍
Functions
256
◇
Types & classes
45
↓ 1 callers
TypeAlias
fakeAddr
conn_test.go:36
↓ 1 callers
FuncType
netDialerFunc
func(network, addr string) (net.Conn, error)
proxy.go:17
Interface
BufferPool
BufferPool represents a pool of buffers. The *sync.Pool type satisfies this interface. The type of the value stored in a pool is not specified.
conn.go:229
Struct
Client
Client is a middleman between the websocket connection and the hub.
examples/chat/client.go:41
Struct
CloseError
CloseError represents a close message.
conn.go:105
Struct
Conn
The Conn type represents a WebSocket connection.
conn.go:242
Struct
Dialer
A Dialer contains options for connecting to WebSocket server. It is safe to call Dialer's methods concurrently.
client.go:53
Struct
HandshakeError
HandshakeError describes an error with the handshake from the peer.
server.go:18
Struct
Hub
Hub maintains the set of active clients and broadcasts messages to the clients.
examples/chat/hub.go:9
Struct
PreparedMessage
PreparedMessage caches on the wire representations of a message payload. Use PreparedMessage to efficiently send a message payload to multiple connect
prepared.go:19
Struct
Upgrader
Upgrader specifies parameters for upgrading an HTTP connection to a WebSocket connection. It is safe to call Upgrader's methods concurrently.
server.go:28
Struct
blockingWriter
conn_test.go:644
Struct
broadcastBench
broadcastBench allows to run broadcast benchmarks. In every broadcast benchmark we create many connections, then send the same message into every conn
conn_broadcast_test.go:19
Struct
broadcastConn
conn_broadcast_test.go:34
Struct
broadcastMessage
conn_broadcast_test.go:29
Struct
cstHandler
client_server_test.go:48
Struct
cstServer
client_server_test.go:50
Struct
errorWriter
errorWriter is an io.Writer than returns an error on all writes.
conn_test.go:303
Struct
failingReader
conn_test.go:677
Struct
fakeNetConn
conn_test.go:24
Struct
flateReadWrapper
compression.go:122
Struct
flateWriteWrapper
compression.go:92
Struct
httpProxyDialer
proxy.go:29
Struct
joinReader
join.go:19
Struct
messageReader
conn.go:1036
Struct
messageWriter
conn.go:532
Struct
netError
netError satisfies the net Error interface.
conn.go:94
Struct
nopCloser
compression_test.go:11
Struct
prepareConn
prepared.go:96
Struct
prepareKey
prepareKey defines a unique set of options to cache prepared frames in PreparedMessage.
prepared.go:27
Struct
preparedFrame
preparedFrame contains data in wire representation.
prepared.go:34
Struct
proxy_Auth
Auth contains authentication parameters that specific Dialers may require.
x_net_proxy.go:167
Interface
proxy_Dialer
A Dialer is a means to establish a connection.
x_net_proxy.go:161
Struct
proxy_PerHost
A PerHost directs connections to a default Dialer unless the host name requested matches one of a number of exceptions.
x_net_proxy.go:32
Struct
proxy_direct
x_net_proxy.go:21
Struct
proxy_envOnce
envOnce looks up an environment variable (optionally by multiple names) once. It mitigates expensive lookups on some platforms (e.g. Windows). (Borrow
x_net_proxy.go:253
Struct
proxy_socks5
x_net_proxy.go:289
Struct
requireDeadlineNetConn
requireDeadlineNetConn fails the current test when Read or Write are called with no deadline.
client_server_test.go:332
Struct
reuseTestResponseWriter
server_test.go:75
Struct
simpleBufferPool
simpleBufferPool is an implementation of BufferPool for TestWriteBufferPool.
conn_test.go:189
Struct
testLogWriter
client_server_test.go:562
Struct
truncWriter
truncWriter is an io.Writer that writes all but the last four bytes of the stream to another io.Writer.
compression.go:58
Struct
validator
examples/autobahn/server.go:187
Struct
writeHook
writeHook is an io.Writer that records the last slice passed to it vio io.Writer.Write.
server.go:344
Struct
writePoolData
writePoolData is the type added to the write buffer pool. This wrapper is used to prevent applications from peeking at and depending on the values add
conn.go:239