Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/socket
/ types & classes
Types & classes
22 in github.com/djherbis/socket
⨍
Functions
83
◇
Types & classes
22
Interface
ClientSocket
ClientSocket creates a client-side Socket
client.go:13
Interface
Emitter
Emitter handles sending messages. Emit sends an event and args which will be handled by the func registered via socket.on.
socket.go:11
Interface
EventHandler
EventHandler registers a function to be run when an event is received. The arguments to the function will be unmarshalled from the javascript objects
handler.go:13
Interface
Handler
Handler is both a PacketHandler and a EventHandler
handler.go:18
Struct
Message
example/main.go:10
Interface
Namespace
Namespace is used to multiplex a single Transport and allow independent sockets within a single connection.
namespace.go:12
Interface
Packet
Packet is used to receive a sent event and decode the javascript objects into a functions arguments
transport.go:19
Interface
PacketHandler
PacketHandler responds to a Packet
handler.go:6
Interface
Room
Room is a collection of Sockets
room.go:6
Struct
Server
Server handles creating Sockets from http connections
server.go:9
Interface
Socket
Socket is a Server-side socket
socket.go:16
Interface
Transport
Transport manages send and receiving Packets
transport.go:27
Struct
caller
caller.go:8
Struct
clientSocket
client.go:32
Struct
handler
handler.go:23
Struct
inPacket
transport.go:113
Struct
namespace
namespace.go:27
Struct
outPacket
transport.go:121
Struct
room
room.go:24
Struct
roomSet
rooms.go:5
Struct
socket
socket.go:35
Struct
wsTransport
transport.go:34