mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-10 01:18:07 -04:00
Sphinx uses .. code-block:: directives to enable highlighting:
http://sphinx-doc.org/markup/code.html#directive-code-block
Use
for i in *.rst; do
sed -i 's/code::/code-block::/g' $i
done
to update these strings to enable proper highlighting.
Note: A have disabled the windows "bash" one, because the highlighting
is broken anyway...
24 lines
700 B
ReStructuredText
24 lines
700 B
ReStructuredText
DeviceDisconnected
|
|
------------------
|
|
|
|
Generated each time a connection to a device has been terminated.
|
|
|
|
.. code-block:: json
|
|
|
|
{
|
|
"id": 48,
|
|
"type": "DeviceDisconnected",
|
|
"time": "2014-07-13T21:18:52.859929215+02:00",
|
|
"data": {
|
|
"error": "unexpected EOF",
|
|
"id": "NFGKEKE-7Z6RTH7-I3PRZXS-DEJF3UJ-FRWJBFO-VBBTDND-4SGNGVZ-QUQHJAG"
|
|
}
|
|
}
|
|
|
|
|
|
.. note::
|
|
The error key contains the cause for disconnection, which might not
|
|
necessarily be an error as such. Specifically, "EOF" and "unexpected
|
|
EOF" both signify TCP connection termination, either due to the other
|
|
device restarting or going offline or due to a network change.
|