# How to create a Socket? (IClient.NewSocket missing)

**URL:** <https://forum.heroiclabs.com/t/how-to-create-a-socket-iclient-newsocket-missing/4411>\
**Category:** Documentation\
**Tags:** sdk-dotnet\
**Created:** [September 29, 2023, 1:21pm UTC](https://forum.heroiclabs.com/t/how-to-create-a-socket-iclient-newsocket-missing/4411 "2023-09-29T13:21:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forum.heroiclabs.com/u/nico)\
**Post date:** [September 29, 2023, 1:21pm UTC](https://forum.heroiclabs.com/t/how-to-create-a-socket-iclient-newsocket-missing/4411/1 "2023-09-29T13:21:12Z")

</div>

Method “NewSocket” does not exist on .NET client.

Here’s the relevant doc link where this is mentioned: [Heroic Labs Documentation | Unity/.Net](https://heroiclabs.com/docs/nakama/client-libraries/unity/#nakama-socket)

---

<div class="post-metadata">

**Author:** ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forum.heroiclabs.com/u/nico)\
**Post date:** [September 29, 2023, 3:06pm UTC](https://forum.heroiclabs.com/t/how-to-create-a-socket-iclient-newsocket-missing/4411/2 "2023-09-29T15:06:57Z")

</div>

Is the replacement “Socket.From(IClient)”?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [September 29, 2023, 3:10pm UTC](https://forum.heroiclabs.com/t/how-to-create-a-socket-iclient-newsocket-missing/4411/3 "2023-09-29T15:10:08Z")

</div>

`NewSocket()` is an extension method only present if using Unity, if you’re not using it then you should use `Socket.From(IClient)` as mentioned.

Hope this helps
