If you'd like users to register before being able to send messages in the chat you can do so with HTML panels. HTML panels allow you to embed any hosted webpage into your chat seamlessly. This webpage would contain the information required to register on your site and send that data back to you. When you receive this data you could enable their ability to chat.

Find out more about HTML panels by clicking the link below.talkjs.com/docs/Features/Customizations/HTML_Panels.html

You’ve successfully subscribed to TalkJS
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.