Since you embed TalkJS inside your site or app, all users who are logged into your app will automatically need to be “logged in” to TalkJS. Start out by following our getting started tutorial, then be sure to enable Identity Verification so that users stop having access to TalkJS when they log out of your […]
Features
Does TalkJS work with/support….?
Frontend JavaScript – Yes React – Yes, see our examples or our tutorial VueJS – Yes Angular – Yes (all versions), see our examples or tutorial We provide a JavaScript SDK that can easily be integrated in to just about any JavaScript framework Backend TalkJS provides a REST API which which can be used by any […]
How can I change a mounted chatbox to switch to another conversation?
The trick for this is the ‘select’ method, which you can use to pass another conversation object to the chatbox. Please click on the link below for more information on how to do this. talkjs.com/docs/api/classes/chatbox.html#select
Is there a way for a user to block another user?
At the moment we don’t offer a button to do that inline in TalkJS by default, so you will have to design a button yourself and then use our REST API to ‘kick that user out of the group chat’/blocking them. Click on the link below for more information on this topic: talkjs.com/docs/Group_chats/Joining_and_Leaving.html
Can I turn a normal chat into a group chat?
Yes. TalkJS only has a single concept for 1-on-1 chats and group chats: Conversations. Even to a one-on-one conversation you can add users later, and it automatically becomes a group chat.
Can a user be deleted from a conversation and a new user be added to continue the conversation?
Yes this is possible. You can use the REST API to delete a user from the conversation and then add a different user, either also using the REST API or using the JS SDK. Please do note that if a new user is added this user can also see all the chat history from before […]
How do I create a session in REST API for a group conversation?
You only create sessions in the Javascript SDK in the browser environment, there is no need to create a session in the REST API. If you really want to create a session in the REST API, you need to call: PUT api.talkjs.com/v1{appId}/conversations/{conversationId} Click on the link below for more information. talkjs.com/docs/REST_API/Reference/Conversations.html