X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/d50c22617aafed0d3d87bf4596e933b343a10b60..c3c7bc90eb73e83f48fbeac6be149ade95a726c0:/socket.go?ds=sidebyside diff --git a/socket.go b/socket.go index a454728..7b2da2b 100644 --- a/socket.go +++ b/socket.go @@ -30,7 +30,10 @@ func checkSocketPath(path string) error { } // SocketRequest is one line from a client: "send" with the text of a user -// message, or "interrupt". +// message, "interrupt", "stop" with the name of a subagent in Text, or +// "whatsapp" with the text after /whatsapp of a WhatsApp command, or "backup" +// with the absolute output path in Text. The backup answer is a "backup" event +// with the path and size, or an "error" event. type SocketRequest struct { Type string `json:"type"` Text string `json:"text,omitempty"`