---
title: "on socket before · RUAL Documentation"
description: "Runs before every socket method of the entity; if it answers, the method does not run. Where the gates every method passes through go. A RUAL realtime block."
canonical: https://docs.rual.nl/block-types/realtime/trigger_socket_before
language: en
---

# on socket before

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).

Runs before every socket method of the entity; if it answers, the method does not run. Where the gates every method passes through go.

- On Before `execute_function`

Starter, not a flow executor (the .blueprint form is `socket before -> fn`). Runs before every socket method of the entity; if it answers, the method does not run. Where the gates every method passes through go. One per entity.

## 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
