# How to set custom states from within a plugin action

**URL:** <https://forum.bubble.io/t/how-to-set-custom-states-from-within-a-plugin-action/280466>\
**Category:** Need help\
**Created:** [August 29, 2023, 9:03pm UTC](https://forum.bubble.io/t/how-to-set-custom-states-from-within-a-plugin-action/280466 "2023-08-29T21:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethanmbinns](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ethanmbinns/32/157966_2.png) [@ethanmbinns](https://forum.bubble.io/u/ethanmbinns)\
**Post date:** [August 29, 2023, 9:03pm UTC](https://forum.bubble.io/t/how-to-set-custom-states-from-within-a-plugin-action/280466/1 "2023-08-29T21:03:57Z")

</div>

So I’m writing a bubble plugin that connects to a WebSocket and I’m trying to save the reply from the socket from within the action.

Can someone write out a dummy action that dose this because I just cant seem to get it. Any help would be great.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 7, 2023, 9:04pm UTC](https://forum.bubble.io/t/how-to-set-custom-states-from-within-a-plugin-action/280466/2 "2023-11-07T21:04:23Z")

</div>

Closed on November 7, 2023, 9:04pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
