From cb4125802afdfa64b4e32763aeec9f8d18725aaa Mon Sep 17 00:00:00 2001 From: Tim Ruffles Date: Wed, 8 Feb 2017 17:11:09 +0000 Subject: [PATCH] mismatch between code example and docs This is documentation for the server code, and the commented code demonstrates the client's response. Update the wording to match. --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 97b40d96c8..5bad8c860e 100644 --- a/docs/API.md +++ b/docs/API.md @@ -413,7 +413,7 @@ socket.emit('hello', 'world'); socket.emit('with-binary', 1, '2', { 3: '4', 5: new Buffer(6) }); ``` -The `ack` argument is optional and will be called with the server answer. +The `ack` argument is optional and will be called with the client's answer. ```js var io = require('socket.io')();