Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chapin666/simple-drawing-backend
/ functions
Functions
19 in github.com/chapin666/simple-drawing-backend
⨍
Functions
19
◇
Types & classes
9
↓ 4 callers
Method
broadcast
broadcast method broadcasts a message to all clients, except one(sender).
hub.go:69
↓ 2 callers
Method
run
run method of Hub
hub.go:36
↓ 1 callers
Method
close
close method
client.go:66
↓ 1 callers
Function
newClient
newClient return a new client
client.go:20
↓ 1 callers
Function
newHub
newHub function create new Hub struct.
hub.go:27
↓ 1 callers
Method
onConnect
onConnect method of Hub.
hub.go:79
↓ 1 callers
Method
onDisconnect
onDisconnect method of Hub.
hub.go:95
↓ 1 callers
Method
onMessage
onMessage method of Hub.
hub.go:118
↓ 1 callers
Method
read
read method.
client.go:31
↓ 1 callers
Method
send
send method.
hub.go:63
↓ 1 callers
Method
write
write method.
client.go:46
Function
GenerateColor
GenerateColor function
utils/utilities.go:15
Function
NewConnected
NewConnected function
message/messages.go:36
Function
NewUserJoined
NewUserJoined function
message/messages.go:51
Function
NewUserLeft
NewUserLeft function
message/messages.go:65
Method
handleWebSocket
handleWebSocket method process socket message.
hub.go:48
Function
init
()
utils/utilities.go:10
Function
main
()
main.go:8
Method
run
run method
client.go:60