Sending nil doesn't seem to work.
Closed this issue · 3 comments
skorokithakis commented
I need a way to notify the subscribed clients that the channel is closed, but sending nil
doesn't work, for some reason. I'm sending []byte
at the moment, so I'm not sure how to even work around this.
cskr commented
Thanks. Topics can now be closed.
skorokithakis commented
I'm sorry about that, it turns out I was checking for nil incorrectly. I guess one shouldn't file bug reports when unfamiliar with the language. However, the resolution is great, since I can now use range over the channel and simplify my code.
cskr commented
Closing topics was a feature I'd been meaning to add, so no worries.