# I wanted to Use Subscribe command In Websocket request

**URL:** <https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186>\
**Category:** Help Hub\
**Created:** [May 27, 2021, 9:19pm UTC](https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186 "2021-05-27T21:19:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavan0302](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pavan0302](https://community.postman.com/u/Pavan0302)\
**Post date:** [May 27, 2021, 9:19pm UTC](https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186/1 "2021-05-27T21:19:45Z")

</div>

But I am un able to send a Null character at the End. Can some one please help how to send subscribe command through postman, or Like how to send a subscribe command through new websocket

---

<div class="post-metadata">

**Author:** ![taehoshino](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/taehoshino/32/6608_2.png) [@taehoshino](https://community.postman.com/u/taehoshino)\
**Post date:** [May 28, 2021, 11:07am UTC](https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186/2 "2021-05-28T11:07:56Z")

</div>

Hey @Pavan0302 👋 Welcome to the Postman Community 🎉

Thanks for trying out our new WebSocket feature 🥰

Can you please post your query in the below thread so that our engineers can answer your question?

> [@User Feedback - WebSocket support](https://community.postman.com/t/user-feedback-websocket-support/23879):
>
> Hey everyone! wave We’ve just released support for WebSocket request (beta) in Postman v8.5.0, if you haven’t tried it yet [check out our blog post](https://blog.postman.com/postman-supports-websocket-apis) and [give it a go](https://go.postman.co/)! We’ll be using this thread to centralise any feedback you may have on the feature. This will help us ensure that we’re heading the right way as we move towards the next steps in supporting WebSockets in Postman. Feedback: white_check_mark [bug] Sending a request with an infinite handshake request timeout crashes the app [#2](https://community.postman.com/t/user-feedback-websocket-support/23879/2) …

---

<div class="post-metadata">

**Author:** ![aviation-observer-80](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@aviation-observer-80](https://community.postman.com/u/aviation-observer-80)\
**Post date:** [December 8, 2021, 10:08pm UTC](https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186/3 "2021-12-08T22:08:21Z")

</div>

I’m having the same problem. Sending text through the websocket, but need to null terminate the text (think C strings - null terminated). I haven’t found a way to add a null (\000 hex 0x00) to the end of the text.

---

<div class="post-metadata">

**Author:** ![fursovm](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@fursovm](https://community.postman.com/u/fursovm)\
**Post date:** [November 13, 2023, 11:14am UTC](https://community.postman.com/t/i-wanted-to-use-subscribe-command-in-websocket-request/24186/4 "2023-11-13T11:14:01Z")

</div>

The solution which worked for me is creating a global variable for the NUL character:  
`postman.setGlobalVariable("NULL_CHAR", '\0');`

Then, whenever you need to use it for WS, just call the variable with `{{NULL_CHAR}}`
