# \#sdk-cocos2d

**URL:** https://forum.heroiclabs.com/tag/sdk-cocos2d/16.md

[Latest](https://forum.heroiclabs.com/latest.md) · [Categories](https://forum.heroiclabs.com/categories.md) · [Tags](https://forum.heroiclabs.com/tags.md)

---

## [Nakama WebSocket throws error when built in native](https://forum.heroiclabs.com/t/nakama-websocket-throws-error-when-built-in-native/1864)

<div class="topic-metadata">

**Author:** [@d3stryr](https://forum.heroiclabs.com/u/d3stryr)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 2:48pm UTC](https://forum.heroiclabs.com/t/nakama-websocket-throws-error-when-built-in-native/1864 "2021-08-10T14:48:11Z")

</div>

Hi, I’m using Cocos creator 2.4.6 and is using the nakama for WebSocket connection when it’s built for web platform it works fine, but when the same is built for native, it throws following error. 2021-08-09 12:26:36.…
