documentation == helpful

This commit is contained in:
raz-varren 2016-08-09 04:39:49 +00:00
parent 1877a4f174
commit d7f7a12948

View File

@ -75,6 +75,7 @@ func (s *Socket) send(data interface{}) error {
return websocket.Message.Send(s.ws, data)
}
//InRoom returns true if s is currently a member of roomName
func (s *Socket) InRoom(roomName string) bool {
s.roomsl.RLock()
defer s.roomsl.RUnlock()