Can you tell me please how to protect CometChat to only

Can you tell me please how to protect CometChat to only logged in users.

Thank you.