# Chrome Dev Console ile aktif websocket verilerini yonetmek

![](https://i.imgur.com/viDdbSc.png)

* `queryObjects(WebSocket)` komutunu yazin

<details>

<summary>Gecikmeli gelen `Array` bilgisini acip, `ws` verisine sag tiklayip `Store as global variable`</summary>

<img src="https://i.imgur.com/2VVZA7f.png" alt="" data-size="original">

</details>

<details>

<summary>Ardindan `temp1` gibi gecici bir degisken olusturacak, `ws = temp1` ile atama yapabiliriz</summary>

\- Atama yapmak sart degil, anlasir bir isim olsun diye \`ws\` dedim

<img src="https://i.imgur.com/QIvF0CX.png" alt="" data-size="original">

</details>

<details>

<summary>`send` ile veri gonderebilirsiniz</summary>

```javascript
ws.send(JSON.stringify({ message: "hey" }))
```

</details>

## References

{% embed url="<https://stackoverflow.com/a/75469254/9770490>" %}


---

# 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.yemreak.com/arsiv/genel/chrome-dev-console-ile-aktif-websocket-verilerini-yonetmek.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.
