# Socket.IO Websockets

Implement Socket.IO client on your platform and listen to this URL:

Production - **<https://api.sensepass.com?id=id\\_\\>\<Device\_Id>**

Sandbox - **<https://api.sandbox.sensepass.com?id=id\\_\\>\<Device\_Id>**

Listen to "message" event to get notifcations about the transaction for a specific device.

Read here about Socket.IO: [https://socket.io/docs/](https://socket.io/docs/v4/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sensepass.com/sensepay/transaction-api/api-notifications/socket.io-websockets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
