From 7930f0419fee741bcf6de73693bcdf1e9986f31e Mon Sep 17 00:00:00 2001 From: Suyi Date: Thu, 21 Jun 2018 12:50:50 +0800 Subject: [PATCH] docs: fix ws engine error (#2717) --- docs/source/en/tutorials/socketio.md | 6 +++--- docs/source/zh-cn/tutorials/socketio.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/en/tutorials/socketio.md b/docs/source/en/tutorials/socketio.md index 5dc8906721..f09d06433d 100644 --- a/docs/source/en/tutorials/socketio.md +++ b/docs/source/en/tutorials/socketio.md @@ -50,14 +50,14 @@ exports.io = { > Namespaces are `/` and `/ example`, not`example` -** uws: ** +**uws:** -If you want to use [uws] instead of the default `us` you can do the following configuration +If you want to use [uws] instead of the default `ws` you can do the following configuration ```js // {app_root} / config / config. $ {env} .js exports.io = { - init: { wsEngine: 'uws' } // default: us + init: { wsEngine: 'uws' } // default: ws }; ``` diff --git a/docs/source/zh-cn/tutorials/socketio.md b/docs/source/zh-cn/tutorials/socketio.md index 7ccbee2b4c..076c77206b 100644 --- a/docs/source/zh-cn/tutorials/socketio.md +++ b/docs/source/zh-cn/tutorials/socketio.md @@ -53,12 +53,12 @@ exports.io = { **uws:** -如果想要使用 [uws] 替代默认的 `us` 可以做如下配置 +如果想要使用 [uws] 替代默认的 `ws` 可以做如下配置 ```js // {app_root}/config/config.${env}.js exports.io = { - init: { wsEngine: 'uws' }, // default: us + init: { wsEngine: 'uws' }, // default: ws }; ```