Javascript SDK for client-side integration
For the client-side integrations, web and mobile, we offer a feature-rich JavaScript SDK. It comes with a customizable and pre-built chat UI that allows you to ship faster.
REST API for server-side integration
Use this library to access chat API endpoints server-side. Call the TalkJS REST API in order to manage messages, conversations and users from your backend.
1<script>
2 protected override async Task OnInitializedAsync()
3 {
4 await base.OnInitializedAsync();
5
6
7 Me = new User()
8 {
9 Id = 123456,
10 Name = "Alice",
11 Email = new string[] { "alice@example.com" } ,
12 PhotoUrl = "https://talkjs.com/images/avatar-1.jpg",
13 WelcomeMessage = "Hey there! How are you? :-)",
14 };
15
16 OtherUsers = new List<User>();
17 OtherUsers.Add(new User()
18 {
19 Id = 654321,
20 Name = "Sebastian",
21 Email = new string[] { "sebastian@example.com" },
22 PhotoUrl = "https://talkjs.com/images/avatar-5.jpg",
23 WelcomeMessage = "Hey, how can I help?",
24 });
25
26 StateHasChanged();
27 }
28</script>