I have created a custom location model and registered it on server and can access it at RocketChat.models.Locations
on server.
When I try to access the method of the same model on client I get the method as undefined.
Then after trying console.log('RocketChat.models')
I observed that RocketChat.models.Locations
is just an empty Object
basically RocketChat.models.Locations = {}
All other models are accessible and are either LocalCollections or Collections except the model I defined.
Did I miss something while defining the new model?