summaryrefslogtreecommitdiff
path: root/runtime/doc/channel.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-07 23:02:56 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-07 23:02:56 +0100
commitcbebd4879cc78e670d79b2c57dc33d7b911c962a (patch)
treedfb98d947f8dc2678d26f3170e02212d89f3276e /runtime/doc/channel.txt
parentee5aeae22b8029fdb5ae97bb6ed8114a81e34c22 (diff)
downloadvim-git-cbebd4879cc78e670d79b2c57dc33d7b911c962a.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/doc/channel.txt')
-rw-r--r--runtime/doc/channel.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index bc9e64144..236875051 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -117,7 +117,9 @@ Once done with the channel, disconnect it like this: >
Currently up to 10 channels can be in use at the same time. *E897*
-When the channel can't be opened you will get an error message.
+When the channel can't be opened you will get an error message. There is a
+difference between MS-Windows and Unix: On Unix when the port doesn't exist
+ch_open() fails quickly. On MS-Windows "waittime" applies.
*E898* *E899* *E900* *E901* *E902*
If there is an error reading or writing a channel it will be closed.
@@ -169,6 +171,9 @@ channel does not have a handler the message is dropped.
On read error or ch_close() the string "DETACH" is sent, if still possible.
The channel will then be inactive.
+It is also possible to use ch_sendraw() on a JSON or JS channel. The caller
+is then completely responsible for correct encoding and decoding.
+
==============================================================================
4. Vim commands *channel-commands*
@@ -266,6 +271,8 @@ asynchronously: >
This {string} can also be JSON, use |jsonencode()| to create it and
|jsondecode()| to handle a received JSON message.
+It is not possible to use |ch_sendexpr()| on a raw channel.
+
==============================================================================
6. Job control *job-control*