---
description: use as a remote interface
---

# Multiple Clients

if you want to run this as a remote interface, you can use `window.onopen` event.

```python
def handler(window):
    document=window.document
    windo.alert("test")
mywindow=dicksonui.window()
mywindow.onopen=handler
```

your event handler is called when new client connected;

argument of event handler(window) is a window object

{% content-ref url="../api/the-window-object" %}
[the-window-object](../api/the-window-object)
{% endcontent-ref %}

