---
title: "unsubscribe · RUAL Documentation"
description: "Removes rooms from a socket's session, a session or every session of a user, on any node. A RUAL realtime block. See its pins and version history."
canonical: https://docs.rual.nl/block-types/realtime/realtime_unsubscribe
language: en
---

# unsubscribe

This block is part of the [`realtime`](https://docs.rual.nl/block-types/realtime) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

Removes rooms from a socket's session, a session or every session of a user, on any node.

- flow

- rooms `array`

- room `value`

- session `value` A session id. Without session or user: the socket of the run.

- user `value` A user guid: every session of the user, on any node.

- flow

- success `condition`

- error `value`

The way round of realtime_subscribe.

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

- [Back to `realtime`](https://docs.rual.nl/block-types/realtime): Return to the main group to view all sub-groups

- [Back to `realtime`](https://docs.rual.nl/block-types/realtime?group=realtime): Return to the group to view all blocks within this group
