# 关于本socket.io中文文档

* gitbook 见 ：<https://socket.gitbook.io/docs/>
* github page 见：<https://veaba.github.io/socket.io-docs/>

## Socket.io 文档中文翻译项目

在过去，曾多次使用到socket.io，但也仅仅是使用基础的模块。最近因为自己做了一个比较大的消息推送架构，再次使用到了socket.io，不由的感慨，这真是一个优秀的社区项目。

为了更加深入学习和使用socket.io，现在我把它的文档中文翻译下，也方便自己学习。

### TODO

* 更新新版的socket.io docs

### 目录

* [关于本socket.io中文文档](https://github.com/veaba/socket.io-docs)
  * [socket.IO官方网站](https://socket.io/)
  * [gitbook见](https://socket.gitbook.io/docs/)
  * [github page 见](https://veaba.github.io/socket.io-docs/)
* [1 指南(Guide)](https://socket.gitbook.io/docs/master)
  * [1-1 介绍(Introduction)](https://socket.gitbook.io/docs/1-zhi-nan-guide/introduction)
  * [1-2 web框架(The web framework)](https://socket.gitbook.io/docs/1-zhi-nan-guide/the_web_framework)
  * [1-3 服务HTML(Serving HTML)](https://socket.gitbook.io/docs/1-zhi-nan-guide/serving_html)
  * [1-4 集成 socket.io(Integrating socket.io)](https://socket.gitbook.io/docs/1-zhi-nan-guide/integrating_socket.io)
  * [1-5 发送事件(Emiting events)](https://socket.gitbook.io/docs/1-zhi-nan-guide/emitting_events)
  * [1-6 广播(Broadcasting)](https://socket.gitbook.io/docs/1-zhi-nan-guide/broadcasting)
  * [1-7 作业(Homework)](https://socket.gitbook.io/docs/1-zhi-nan-guide/homework)
  * [1-8 获取示例(Getting this example)](https://socket.gitbook.io/docs/1-zhi-nan-guide/getting_this_example)
* [2 文档(Docs)](https://socket.gitbook.io/docs/master)
  * [2.1 概览](https://socket.gitbook.io/docs/master)
    * [2.1.1 啥是Socket.io](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/what_socket.io_is)   &#x20;
    * [2.1.2 Socket.io不是什么](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/what_socket.io_is_not)   &#x20;
    * [2.1.3 安装](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/installing)   &#x20;
    * [2.1.4 在Node HTTP 服务中使用](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/using_with_node_http_server)   &#x20;
    * [2.1.5 在express中使用Socket.io](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/using_with_express)   &#x20;
    * [2.1.6 发送和接收事件](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/sending_and_receiving_events)   &#x20;
    * [2.1.7 限制自己使用命名空间](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/restricting_yourself_to_a_namespace)
    * [2.1.8 发送易失性的消息](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/sending_volatile_message)   &#x20;
    * [2.1.9 发送和获取数据(确认)](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/sending_and_getting_data_acknowledgements) &#x20;
    * [2.1.10 广播消息](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/broadcasting_messages)  &#x20;
    * [2.1.111 作为跨浏览器使用websocket](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/using_it_just_as_a_cross_browser_websocket)    &#x20;
  * [2.2 房间和命名空间](https://socket.gitbook.io/docs/master)
    * [2.2.1 命名空间](https://socket.gitbook.io/docs/2-wen-dang-docs/2.2-fang-jian-he-ming-ming-kong-jian/namespaces)
    * [2.2.2 房间](https://socket.gitbook.io/docs/2-wen-dang-docs/2.2-fang-jian-he-ming-ming-kong-jian/rooms)
    * [2.2.3 给外部发送消息](https://socket.gitbook.io/docs/2-wen-dang-docs/2.2-fang-jian-he-ming-ming-kong-jian/sending_message_from_the_outside-world)
  * [2.3 从0.9迁移版本 migrating\_from\_0.9](https://socket.gitbook.io/docs/master)
    * [2.3.1 身份验证差异](https://socket.gitbook.io/docs/2-wen-dang-docs/2.3-cong-0.9-qian-yi-ban-ben-migratingfrom0.9/authentication_differences)
    * [2.3.2 日志差异](https://socket.gitbook.io/docs/2-wen-dang-docs/2.3-cong-0.9-qian-yi-ban-ben-migratingfrom0.9/log_differences)
    * [2.3.3 快捷方式](https://socket.gitbook.io/docs/2-wen-dang-docs/2.3-cong-0.9-qian-yi-ban-ben-migratingfrom0.9/shorcuts)
    * [2.3.4 配置差异](https://socket.gitbook.io/docs/2-wen-dang-docs/2.3-cong-0.9-qian-yi-ban-ben-migratingfrom0.9/configuration_differences)
    * [2.3.5 解析器/协议差异](https://socket.gitbook.io/docs/2-wen-dang-docs/2.3-cong-0.9-qian-yi-ban-ben-migratingfrom0.9/parser_protocol_differences)
  * [2.4 多路节点使用](https://socket.gitbook.io/docs/master)
    * [2.4.1 Apache httpd配置](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/apache_httpd_configuration)
    * [2.4.2 在节点之间传递事件](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/passing_events_between_nodes)
    * [2.4.3 Haproxy配置](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/haproxy_configuration)
    * [2.4.4 粘性负载均衡](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/sticky_load_balancing)
    * [2.4.5 Nginx配置](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/nginx_configuration)
    * [2.4.6 使用node.js集群](https://socket.gitbook.io/docs/2-wen-dang-docs/2.4-duo-lu-jie-dian-shi-yong/using_node.js_cluster)
  * [2.5 日志和调试](https://socket.gitbook.io/docs/master)
    * [2.5.1 可用的调试范围](https://socket.gitbook.io/docs/2-wen-dang-docs/2.5-ri-zhi-he-tiao-shi/available_debugging_scopes)
  * [2.6 emit 备忘单](https://socket.gitbook.io/docs/2-wen-dang-docs/emit_cheatsheet)
  * [2.7 内部概述](https://socket.gitbook.io/docs/master)
    * [2.7.1 内部概述引擎底层依赖关系图](https://socket.gitbook.io/docs/2-wen-dang-docs/2.7-nei-bu-gai-shu/internals_overview_dependency_graph_under_the_hood)
    * [2.7.2 内部概述关系图](https://socket.gitbook.io/docs/2-wen-dang-docs/2.7-nei-bu-gai-shu/internals_overview_dependency_graph)
  * [2.8 faq](https://socket.gitbook.io/docs/2-wen-dang-docs/faq)
* [3 客户端-API(Client-API)](https://socket.gitbook.io/docs/master)
  * [3.1 io](https://socket.gitbook.io/docs/master)
    * [3.1.1 io.protocpl](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/io_protocol)
    * [3.1.2 io(\[url\]\[,optiosn\])](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/io_url_options)
    * [3.1.3 初始化示例-带多路复用](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_multiplexing)
    * [3.1.4 初始化示例-自定义路径](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_custom_path)
    * [3.1.5 初始化示例-查询参数](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_query_parameters)
    * [3.1.6 初始化示例-查询选项](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_query_option)
    * [3.1.7 初始化示例-额外Headers](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_extraheaders)
    * [3.1.8 初始化示例-仅限websocket传输](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_websockets_transport_only)
    * [3.1.9 初始化示例-自定义解析器](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.1-io/initialization_examples_with_a_custom_parser)
    * [3.1.11 初始化示例-自签名证书](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/io/initialization_examples_width_a_sele-signed_certificate.md)
  * [3.2 manager](https://socket.gitbook.io/docs/master)
    * [3.2.1 new Manager(url\[,options\])](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.2-manager/new_manager_url_options)
    * [3.2.2 manager.reconnection(\[value\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_reconnection_value.md)
    * [3.2.3 manager.reconnectionAttempts(\[value\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_reconnectionAttempts_value.md)
    * [3.2.4 manager.reconnectionDelay.(\[value\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_reconnectionDelay_value.md)
    * [3.2.5 manager.reconnectionDelayMax(\[value\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_reconnectionDelayMax_value.md)
    * [3.2.6 manager.timeout(pvalue\[\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_timeout_value.md)
    * [3.2.7 manager.open(\[callback\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_open_callback.md)
    * [3.2.8 manager.connect(\[callback\])](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_connect_callback.md)
    * [3.2.9 manager.socket(nsp,options)](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nmanager_socket_nsp_options.md)
    * [3.2.10 event:connect\_error](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_connect_error.md)
    * [3.2.11 event:connect\_timeout](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_connect_timeout.md)
    * [3.2.12 event:reconnect](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_reconnect.md)
    * [3.2.13 event:reconnect\_attempt](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_reconnect_attempt.md)
    * [3.2.14 event:reconnecting](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_reconnecting.md)
    * [3.2.15 event:reconnect\_error](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_reconnect_error.md)
    * [3.2.16 event:reconnect\_failed](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_reconnect_failed.md)
    * [3.2.17 event:ping](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manmanagerage/nevent_ping.md)
    * [3.2.18 event:pong](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/client-api/manager/nevent_pong.md)
  * [3.3 socket](https://socket.gitbook.io/docs/master)
    * [3.3.1 socket.id](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_id)
    * [3.3.2 socket.connected](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_connected)
    * [3.3.3 socket.disconnected](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_disconnected)
    * [3.3.4 socket.open()](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_open)
    * [3.3.5 socket.connect()](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_connect)
    * [3.3.6 socket.send(\[...args\]\[,ack\])](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_send_args_ack)
    * [3.3.7 socket.emit(eventName,\[...args\]\[,ack\])](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_emit_eventname_args_ack)
    * [3.3.8 socket.on(eventName,callback)](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_on_eventname_callback)
    * [3.3.9 socket.compress(value)](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_compress_value)
    * [3.3.10 socket.binary(value)](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_binary_value)
    * [3.3.11 socket.close()](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_close)
    * [3.3.12 socket.disconnect()](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/socket_disconnect)
    * [3.3.13 event:connect](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_connect)
    * [3.3.14 event:connect\_error](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_connect_error)
    * [3.3.15 event:connect\_timeout](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_connect_timeout)
    * [3.3.16 event:error](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_error)
    * [3.3.17 event:disconnect](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_disconnect)
    * [3.3.18 event:reconnect](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_reconnect)
    * [3.3.19 event:reconnect\_attempt](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_reconnect_attempt)
    * [3.3.20 event:reconnenting](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_reconnenting)
    * [3.3.21 event:reconnect\_error](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_reconnect_error)
    * [3.3.22 event:reconnect\_failed](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_reconnect_failed)
    * [3.3.23 event:ping](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_ping)
    * [3.3.24 event:pong](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_pong)
* [4 服务端-API(Server-API)](https://socket.gitbook.io/docs/master)
  * [4.1 server](https://socket.gitbook.io/docs/master)
    * [4.1.1 HTTP服务选项 new\_server\_httpserver\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_httpserver_options)
    * [4.1.2 服务器端口选项 new\_server\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_port_options)
    * [4.1.3 服务器选项 new\_server\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/new_server_options)
    * [4.1.4 服务器sockets server\_sockets](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_sockets)
    * [4.1.5 服务器serverClient值 server\_serverClient\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_serverclient_value)
    * [4.1.6 服务器路径值 server\_path\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_path_value)
    * [4.1.7 服务器适配器值 server\_adapter\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_adapter_value)
    * [4.1.8 服务器源值 server\_origins\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_origins_value)
    * [4.1.9 服务器源函数 server\_origins\_fn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_origins_fn)
    * [4.1.10 服务器附加HTTP服务选项 server\_attach\_httpServer\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_attach_httpserver_options)
    * [4.1.11 服务器附加端口选项 server\_attach\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_attach_port_options)
    * [4.1.12 服务器监听HTTP服务选项 server\_listen\_httpServer\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_listen_httpserver_options)
    * [4.1.13 服务器监听端口选项 server\_listent\_port\_options](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_listent_port_options)
    * [4.1.14 服务器绑定引擎 server\_bind\_engine](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_bind_engine)
    * [4.1.15 服务器连接socket server\_onconnection\_socket](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_onconnection_socket)
    * [4.1.16 服务器命名空间(nsp) server\_of\_nsp](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_of_nsp)
    * [4.1.17 服务器关闭回调 server\_close\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_close_callback)
    * [4.1.18 服务器引擎生成socket ID server\_engine\_generateid](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.1-server/server_engine_generateid)
  * [4.2 命名空间(namespace)](https://socket.gitbook.io/docs/master)
    * [4.2.1 命名空间 namespace](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace)
    * [4.2.2 命名空间名称 namespace\_name](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_name)
    * [4.2.3 命名空间连接 namespace\_connected](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_connected)
    * [4.2.4 命名空间适配器 namespace\_adapter](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_adapter)
    * [4.2.5 命名空间到房间 namespace\_to\_room](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_to_room)
    * [4.2.6 命名空间在房间 namespace\_in\_room](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_in_room)
    * [4.2.7 命名空间发送事件参数 namespace\_emit\_eventname\_args](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_emit_eventname_args)
    * [4.2.8 命名空间客户端回调 namespace\_clients\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_clients_callback)
    * [4.2.9 命名空间中间件函数 namespace\_use\_fn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_use_fn)
    * [4.2.10 连接事件 event\_connect](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/event_connect)
    * [4.2.11 事件连接 event\_connection](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/event_connection)
    * [4.2.12 可见性标志位 flag\_volatile](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/flag_volatile)
    * [4.2.13 二进制标志位 flag\_binary](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/flag_binary)
    * [4.2.14 本地标记位 flag\_local](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/flag_local)
  * [4.3 socket](https://socket.gitbook.io/docs/master)
    * [4.3.1 socket\_id](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_id)
    * [4.3.2 socket\_rooms](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_rooms)
    * [4.3.3 socket\_client](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_client)
    * [4.3.4 socket\_conn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_conn)
    * [4.3.5 socket\_request](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_request)
    * [4.3.6 socket\_handshake](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_handshake)
    * [4.3.7 socket\_use\_fn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_use_fn)
    * [4.3.8 socket\_send\_args\_ack](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_send_args_ack)
    * [4.3.9 socket\_emit\_eventName\_args\_ack](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/server-api/socket/socket_emit_evenName_args_ack.md)
    * [4.3.10 socket\_on\_eventName\_callback](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/server-api/socket/socket_on_eventName_callback.md)
    * [4.3.11 socket\_once\_eventName\_listener](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/server-api/socket/socket_once_eventName_listener.md)
    * [4.3.12 socket\_removelistener\_eventName\_listener](https://github.com/veaba/socket.io-docs/tree/0e272b45e43e612a4f367922a81871c8e4906eed/server-api/socket/socket_removelistener_eventName_listener.md)
    * [4.3.13 socket\_removeAllListeners\_eventName](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_removealllisteners_eventname)
    * [4.3.14 socket\_eventNames](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_eventnames)
    * [4.3.15 socket\_join\_room\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_join_room_callback)
    * [4.3.16 socket\_join\_rooms\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_join_rooms_callback)
    * [4.3.17 socket\_leave\_room\_callback](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_leave_room_callback)
    * [4.3.18 socket\_to\_room](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_to_room)
    * [4.3.19 socket\_in\_room](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_in_room)
    * [4.3.20 socket\_compress\_value](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_compress_value)
    * [4.3.21 socket\_disconnect\_close](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_disconnect_close)
    * [4.3.22 flag\_broadcast](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/flag_broadcast)
    * [4.3.23 flag\_volatile](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/flag_volatile)
    * [4.3.24 flag\_binary](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/flag_binary)
    * [4.3.25 event\_disconnect](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/event_disconnect)
    * [4.3.26 event\_error](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/event_error)
    * [4.3.27 event\_disconnecting](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/event_disconnecting)
  * [4.4 client](https://socket.gitbook.io/docs/master)
    * [4.4.1 client](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.4-client/client)
    * [4.4.2 client\_conn](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.4-client/client_conn)
    * [4.4.3 client\_request](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.4-client/client_request)

### 术语

#### 术语转换

| 错误           | 校正     |
| ------------ | ------ |
| `客户机`        | 客户端    |
| `套接字`        | socket |
| `插座`         | socket |
| `发射`         | 发送     |
| `分析器`        | 解析器    |
| `underlying` | 底层     |
| `激发`         | 触发     |
|              |        |

#### 英文翻译

* `traditionally 传统，一直以来`
* `involves 涉及`
* `polling 投票、轮询`
* `goal 目标，得分，母的`
* `populate 填充、补完`
* `confufing 混乱 混淆`
* `entire 整个`
* `placed 放置`
* `instead 相反的`
* `refactor 重构`
* `composed 组成`
* `exposes 暴露`&#x20;
* `several 一些`&#x20;
* `behind 背后`
* `prevents 放置`&#x20;
* `broadcasting 广播`&#x20;
* `the rest 其余`
* `in order to 为了`
* `except 除了`
* `certain 某些`
* `in the case 在这种情况下`
* `for the sake of simplicity 为了简单起见`
* `capture  捕获`
* `total 全部`
* `amounts 量、等于、合计`
* `directly z直接地`
* `presses 按下`
* `typing 打字`
* `functionality 功能`
* `improvements 改进`
* `enables 可以，使能够`
* `real-time 实时`
* `bidirectional 双向的`&#x20;
* `event-based 基于事件`
* `communication 通信、沟通`
* `between 之间`
* `consists 包括`
* `which can  也可以`
* `Multiplexing 多路复用`
* `established 建立`
* `presence 存在`
* `load balancers 负载均衡器`
* `firewall 防火墙`
* `purpose 目的`
* `antivirus 防病毒`
* `relies 依赖`
* `polling 轮询`
* `goals 目标`
* `For this purpose 为此`
* `Unless 除非`
* `instructed 得到指示`
* `otherwise 否则`
* `heartbeat 心跳`
* `mechanism 机智`
* `implemented 实现、实施，贯彻，使生效`
* `allowing 允许`
* `anymore 不在`
* `functionality 功能`
* `acheieved  实现、达到`
* `handshake 握手`
* `serializable 可序列化的`
* `structures 结构`
* `separation 分离`
* `concerns 关注`
* `per 每`
* `underlying connection 底层连接`
* `arbitrary 任意`
* `reaching 到达`
* `given 给定、特定、指定`
* `useful 有用`
* `standalone 独立`
* `served 服务`
* `implementations 实现方式`
* `several 几个`
* `maintained 维护、保持`
* `besides 此外，除了`
* `restricting 限制`
* `reception 接待、接受`
* `volatile 不稳定的`
* `certain 某些`
* `essentially  本质上`
* `assigning 分配`
* `minimize 减少`
* `identified`
* `short form 简写`

by @veaba

2019年3月13日13:39:15
