-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Is gowebsocket.Socket thread safe? Can I do something like this?
func foo(socket gowebsocket.Socket){
log.Println("Connected to server");
socket.SendText("Hi there, this is my sample test message")
}
...
socket.OnConnected = func(socket gowebsocket.Socket) {
go foo(socket)
}
This is just an example.
Metadata
Metadata
Assignees
Labels
No labels