# Can not to connect sendbird server (SDK)

**URL:** <https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398>\
**Category:** Miscellaneous\
**Tags:** group-channel, chatsdk\
**Created:** [October 10, 2023, 11:42am UTC](https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398 "2023-10-10T11:42:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yerkebulan\_Zhaukenov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yerkebulan_zhaukenov/32/4602_2.png) [@Yerkebulan\_Zhaukenov](https://community.sendbird.com/u/Yerkebulan_Zhaukenov)\
**Post date:** [October 10, 2023, 11:42am UTC](https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398/1 "2023-10-10T11:42:20Z")

</div>

Here is my code:

`export class ChatService {  
protected sendBird: SendbirdOpenChat;  
private APP\_ID = \<APP\_ID\>;

constructor() {  
this.sendBird = SendbirdChat.init({  
appId: this.APP\_ID,  
modules: [new OpenChannelModule()],  
}) as SendbirdOpenChat;  
}`

public getSendBirdInstance(): SendbirdOpenChat {  
return this.sendBird;  
}

public async connectUsertoSB(userId: string): Promise {  
return await this.sendBird.connect(userId);  
}  
}`

async handleConnection(client: any, …args: any): Promise {  
console.log(`Client connected: ${client.id} HERE START`);  
const sb: SendbirdOpenChat = this.chatService.getSendBirdInstance();  
console.log(‘allgood’);  
const result: User = await sb.connect(‘333’); \<----- HERE IS STOCK  
}

Stock in line which i highlight then just nothing happening; If you got some issue please tell me how you fixed it, thanks!)

---

<div class="post-metadata">

**Author:** ![Jens\_Malmborg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jens_malmborg/32/4838_2.png) [@Jens\_Malmborg](https://community.sendbird.com/u/Jens_Malmborg)\
**Post date:** [January 5, 2024, 12:30pm UTC](https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398/2 "2024-01-05T12:30:49Z")

</div>

I have the exact same issue, did you manage to resolve it?

---

<div class="post-metadata">

**Author:** ![Jens\_Malmborg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jens_malmborg/32/4838_2.png) [@Jens\_Malmborg](https://community.sendbird.com/u/Jens_Malmborg)\
**Post date:** [January 10, 2024, 7:09am UTC](https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398/3 "2024-01-10T07:09:45Z")

</div>

The issue was that I was trying to use the SDK in Node.js, instead of the browser. So I just used the Platform API’s instead.

---

<div class="post-metadata">

**Author:** ![Yerkebulan\_Zhaukenov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yerkebulan_zhaukenov/32/4602_2.png) [@Yerkebulan\_Zhaukenov](https://community.sendbird.com/u/Yerkebulan_Zhaukenov)\
**Post date:** [January 10, 2024, 8:50am UTC](https://community.sendbird.com/t/can-not-to-connect-sendbird-server-sdk/8398/4 "2024-01-10T08:50:37Z")

</div>

Hello bro! Yes i do the same how i understand the SDK work only for FE;  
In BE I also just used API
