# Test Socket.io with postman

**URL:** <https://forum.rasa.com/t/test-socket-io-with-postman/55204>\
**Category:** Rasa Open Source\
**Created:** [September 7, 2022, 9:28am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204 "2022-09-07T09:28:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupesh2306](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rupesh2306](https://forum.rasa.com/u/rupesh2306)\
**Post date:** [September 7, 2022, 9:28am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/1 "2022-09-07T09:28:10Z")

</div>

I have created a chat bot using rasa. I am able to test chatbot using ‘rasa shell’. It is working as expected. Now I have to link the chatbot with our website. We use Postman for testing. It is working as expected when we use “/webhooks/rest/webhook” as URL and send payload as following json:

```auto
{
    "sender": "user",
   "message": "Hi"
}

```

Using this we are getting corresponding response.

Now, we want to use [socket.io](http://socket.io) instead of webhooks. Hence we added following code to credentials.yml file:

```auto
socketio:
  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: true

```

After adding the code to yml, we create a new websocket request in postman and connect with “ws://localhost:5005/” URL. Connection is successful. After connecting to URL successfully, we are getting following warning in messages section: `Add event listeners to receive messages`

Due to his warning we are not getting any response from rasa.

Can anybody give suggestions on any missing part in my code or postman settings.

---

<div class="post-metadata">

**Author:** ![Gabrielhall](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gabrielhall/32/21445_2.png) [@Gabrielhall](https://forum.rasa.com/u/Gabrielhall)\
**Post date:** [September 7, 2022, 10:08am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/2 "2022-09-07T10:08:09Z")

</div>

I have to first code in my pc and then let you know the error. but you are still missing one code[.](https://www.myaccountaccess.one/)

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [September 8, 2022, 2:46am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/3 "2022-09-08T02:46:01Z")

</div>

I’ve been using Postman with the socket channel recently. It sounds like you didn’t add a listener in Postman for `bot_uttered`.

---

<div class="post-metadata">

**Author:** ![rupesh2306](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rupesh2306](https://forum.rasa.com/u/rupesh2306)\
**Post date:** [September 8, 2022, 7:14am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/5 "2022-09-08T07:14:28Z")

</div>

Hi @Gabrielhall , Did you get a chance to try this out on your pc?

---

<div class="post-metadata">

**Author:** ![rupesh2306](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rupesh2306](https://forum.rasa.com/u/rupesh2306)\
**Post date:** [September 8, 2022, 7:15am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/6 "2022-09-08T07:15:17Z")

</div>

Yes @stephens . I am new to RASA, I am not sure where and which code I should add. I looked into rasa documentation, but I didn’t find document related to how we can add listener. Can you suggest me documentation for this or post some code which I can you directly.

---

<div class="post-metadata">

**Author:** ![rupesh2306](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rupesh2306](https://forum.rasa.com/u/rupesh2306)\
**Post date:** [September 12, 2022, 5:54am UTC](https://forum.rasa.com/t/test-socket-io-with-postman/55204/8 "2022-09-12T05:54:18Z")

</div>

@Harvey5368 Not yet.
