From a50338a0281d0458081354a61fce5620786dfdc8 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 15 Feb 2020 14:26:14 +0000 Subject: [PATCH] [docs] Add link to status code section of websocket RFC --- docs/API.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/API.md b/docs/API.md index 0f69213..4b422c5 100644 --- a/docs/API.md +++ b/docs/API.md @@ -4,8 +4,9 @@ The Forest API uses json over websockets as its packet format. The API is intentionally kept simple so new clients are easy to create. When the client or the server detects incorrect data being sent, it should close -the connection with a relevant error code (usually 1008) and the reason for the -disconnect in the close message. +the connection with a relevant +[status code](https://tools.ietf.org/html/rfc6455#section-7.4) (usually 1008) +and the reason for the disconnect in the close message. ## Opening handshake @@ -165,4 +166,3 @@ update its node tree and display the new tree. | `nodes` | list of nodes | The new list of children | If the path is an empty path, the root node list should be replaced. -