Global Feed Post Login
Replying to Avatar itszachnotzak

Relays can send 3 types of messages which must be JSON arrays (JSON is a popular data format)

Examples from the doc:

```json

["EVENT", , ], // used to send events requested by clients.

["EOSE", ] // used to indicate the end of stored events and the beginning of events newly received in real-time.

["NOTICE", ]

```

Avatar
itszachnotzak 2y ago

If you want a look at what JSON is you can look at this: https://www.json.org/json-en.html

Reply to this note

Please Login to reply.

Discussion

Avatar
itszachnotzak 2y ago

This might be a more friendly intro to JSON: https://www.w3schools.com/js/js_json_intro.asp

Thread collapsed