Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/socket
/ functions
Functions
83 in github.com/djherbis/socket
⨍
Functions
83
◇
Types & classes
22
↓ 13 callers
Method
On
(event string, fn interface{})
handler.go:14
↓ 10 callers
Method
ID
ID() is this sockets unique identifier
client.go:16
↓ 8 callers
Method
Emit
(event string, args ...interface{})
socket.go:12
↓ 4 callers
Method
Join
Join adds a socket to the Room
room.go:15
↓ 4 callers
Method
OnPacket
(Packet)
handler.go:7
↓ 4 callers
Method
To
To returns an Emitter to the passed room.
socket.go:29
↓ 3 callers
Method
disconnect
()
socket.go:81
↓ 3 callers
Function
newRoom
(name string)
room.go:30
↓ 3 callers
Function
newSocket
(ns *namespace, id string, t Transport)
socket.go:42
↓ 3 callers
Method
ns
(name string)
server.go:21
↓ 2 callers
Method
Leave
Leave removes a socket from the Room
room.go:18
↓ 2 callers
Method
Leave
Leave removes a Socket from the passed Room
socket.go:23
↓ 2 callers
Method
Namespace
()
transport.go:20
↓ 2 callers
Function
New
(url string)
client.go:52
↓ 2 callers
Function
NewServer
NewServer creates a new Server
server.go:33
↓ 2 callers
Method
NextPacket
()
transport.go:29
↓ 2 callers
Method
Of
Of creates a new Namespace with "name", or returns the existing Namespace with name "name"
server.go:17
↓ 2 callers
Method
Socket
()
transport.go:21
↓ 2 callers
Function
newClientSocket
(id, ns string, t Transport)
client.go:41
↓ 2 callers
Function
newHandler
()
handler.go:28
↓ 2 callers
Function
newNamespace
(name string)
namespace.go:36
↓ 1 callers
Method
Close
()
transport.go:31
↓ 1 callers
Method
Close
Close the underlying Transport
client.go:29
↓ 1 callers
Method
DecodeArgs
(args ...interface{})
transport.go:23
↓ 1 callers
Method
Event
()
transport.go:22
↓ 1 callers
Method
ID
()
client.go:50
↓ 1 callers
Method
Join
Join adds a Socket to the passed Room
socket.go:20
↓ 1 callers
Method
Name
Name returns the room name
room.go:9
↓ 1 callers
Method
Name
Name returns this namespace's name
namespace.go:15
↓ 1 callers
Method
Request
Request returns the request which this Socket was created from.
socket.go:32
↓ 1 callers
Method
Send
(namespace, socketid, event string, args ...interface{})
transport.go:30
↓ 1 callers
Method
Size
Size returns the # of sockets in the room
room.go:12
↓ 1 callers
Method
addSocket
(so Socket)
namespace.go:85
↓ 1 callers
Method
call
(args ...interface{})
caller.go:46
↓ 1 callers
Method
disconnect
()
client.go:106
↓ 1 callers
Function
generateID
()
client.go:115
↓ 1 callers
Method
getArgs
()
caller.go:34
↓ 1 callers
Method
getSockets
()
room.go:59
↓ 1 callers
Function
newPacketHandler
(f interface{})
caller.go:13
↓ 1 callers
Function
newRoomSet
()
rooms.go:10
↓ 1 callers
Function
newWSClient
(host string)
transport.go:61
↓ 1 callers
Function
newWSServer
(w http.ResponseWriter, r *http.Request)
transport.go:74
↓ 1 callers
Method
removeSocket
(so Socket)
namespace.go:98
↓ 1 callers
Method
room
(name string)
rooms.go:14
↓ 1 callers
Function
splitHostNamespace
(url string)
transport.go:45
Method
Close
()
transport.go:98
Method
DecodeArgs
(args ...interface{})
transport.go:131
Method
Emit
(event string, args ...interface{})
room.go:71
Method
Emit
(event string, args ...interface{})
client.go:84
Method
Emit
(event string, args ...interface{})
namespace.go:81
Method
Event
()
transport.go:130
Method
Join
(so Socket)
room.go:41
Method
Join
(room string)
socket.go:50
Method
Join
(name string, so Socket)
rooms.go:25
Method
Leave
(so Socket)
room.go:47
Method
Leave
(room string)
socket.go:57
Method
Leave
(name string, so Socket)
rooms.go:36
Method
Name
()
room.go:37
Method
Name
()
namespace.go:44
Method
Namespace
()
transport.go:128
Method
Namespace
Namespace() is the namespace this socket is a part of
client.go:19
Method
Namespace
()
client.go:80
Method
NextPacket
()
transport.go:89
Method
On
(event string, fn interface{})
handler.go:34
Method
On
(event string, fn interface{})
client.go:88
Method
On
(event string, fn interface{})
namespace.go:50
Method
OnPacket
(p Packet)
handler.go:41
Method
OnPacket
(p Packet)
caller.go:63
Method
Request
()
transport.go:28
Method
Request
()
transport.go:85
Method
Request
()
socket.go:68
Method
Rooms
Rooms returns the rooms this Socket is in
socket.go:26
Method
Rooms
()
socket.go:72
Method
Send
(ns, socket, event string, args ...interface{})
transport.go:102
Method
ServeHTTP
ServeHttp handles http requests and converting them into Sockets
server.go:44
Method
Size
()
room.go:53
Method
Socket
()
transport.go:129
Method
To
(room string)
socket.go:64
Method
To
To emits to a room
namespace.go:18
Method
To
(room string)
namespace.go:46
Function
main
()
example/main.go:14
Function
main
()
example/hook/server.go:11
Function
main
()
example/hook/client.go:10