You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Is gowebsocket.Socket thread safe? Can I do something like this?
This is just an example.
The text was updated successfully, but these errors were encountered: