From be4fe7bc20ad4864748f83568f7a44fb9a395b79 Mon Sep 17 00:00:00 2001 From: SwhGo_oN Date: Fri, 17 Mar 2017 22:55:35 +0800 Subject: [PATCH] `namespace`'s event: 'connect' returns `socket` --- docs/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/API.md b/docs/API.md index e9fe058650..3d99238719 100644 --- a/docs/API.md +++ b/docs/API.md @@ -312,9 +312,9 @@ io.use(function(socket, next){ #### Event: 'connect' - - `error` _(Object)_ error object + - `socket` _(Socket)_ socket connection with client -Fired upon a reconnection attempt error. +Fired upon a connection from client. #### Event: 'connection'