---
title: "on socket connect · RUAL Documentation"
description: "Runs when a realtime socket has upgraded, before its first frame. The function gets socket. A RUAL realtime block. See its 1 output pin and its version history."
canonical: https://docs.rual.nl/block-types/realtime/trigger_socket_connect
language: en
---

# on socket connect

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 when a realtime socket has upgraded, before its first frame. The function gets socket.

- On Connect `execute_function`

Starter, not a flow executor (the .blueprint form is `socket connect -> fn`). Runs when a realtime socket has upgraded, before its first frame. The function gets socket. 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
