wsify
wsify copied to clipboard
send on closed channel
goRoutineAction handle readjson, and readjson err will close chan. after this time
if err := conn.WriteJSON(msg); err != nil {
debug("A message cannot be published to (" + key + ") because of the following error (" + err.Error() + ")")
closeCh <- true
}
send data on closed channel