# Hello! I want use websocket AMB82 MINI

**URL:** <https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553>\
**Category:** WiFi\
**Tags:** evb-amb82, rtl8735b\
**Created:** [December 21, 2023, 1:01am UTC](https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553 "2023-12-21T01:01:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anewgate](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/anewgate/32/1762_2.png) [@anewgate](https://forum.amebaiot.com/u/anewgate)\
**Post date:** [December 21, 2023, 1:01am UTC](https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553/1 "2023-12-21T01:01:33Z")

</div>

Hi everyone.

Please recommend a websocket library that can be used on the AMB82 MINI board.  
Currently, the ArduinoHttpClient library can be used, but there is a problem and a different library must be used.  
  
Thank you.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [December 21, 2023, 3:46am UTC](https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553/2 "2023-12-21T03:46:42Z")

</div>

Hi @anewgate,

Can you elaborate more on what problem you are facing?

Thank you.

---

<div class="post-metadata">

**Author:** ![anewgate](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/anewgate/32/1762_2.png) [@anewgate](https://forum.amebaiot.com/u/anewgate)\
**Post date:** [December 21, 2023, 4:20am UTC](https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553/3 "2023-12-21T04:20:51Z")

</div>

The websocket provided by ArduinoHttpClient requires a constructor when creating an object.  
I am creating a websocket object dynamically, but this part is problematic.

# For example, if there is a constructor, you should use it like the code below.

# WebSocketClinet client = WebSocketClinet(wifi, host, port);

# But I want to use it later without initializing the object.

# WebSocketClinetclient; … void someEventListener(){ client = WebSocketClinet(wifi, host, port); }

I would like to use it in the same way as above.

# I tried the following, but an error occurs.

# WebSocketClinet \*client; … void someEventListener(){ client = new WebSocketClinet(wifi, host, port); client-\>begin(…); \<---- Error occurred! }

Thanks for reading.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [December 21, 2023, 6:47am UTC](https://forum.amebaiot.com/t/hello-i-want-use-websocket-amb82-mini/2553/4 "2023-12-21T06:47:41Z")

</div>

Hi @anewgate, thank you for your feedback, currently this feature is still not available yet. We will internally discuss if this can be added to our future workplan.

Thank you.
