书栈网 · BookStack 本次搜索耗时 0.016 秒,为您找到 415 个相关结果.
  • 4.1.17 服务器关闭回调 server_close_callback

    server.close([callback]) server.close([callback]) callback (Function) 关闭socket.io服务器。callback(回调) 参数是可选的,将在关闭所有连接时调用。 const Server = require ( 'socket.io' ); const PORT...
  • 建立简单的呼叫流程

    建立简单的呼叫流程 socket.io JavaScript库 Node.js 软件平台 建立简单的呼叫流程 与往常一样,我们将继续采用 “按示例学习” 方法,以便让您了解如何在两个远程对等之间建立服务器辅助的信令通道。 在本章中,我们将专注于简单交互场景的实现,如 图4-1 的序列图中所示。 图4-1 信令通道示例:序列图 图片中的图...
  • Engine

    Engine engine.clientsCount engine.generateId engine.handleUpgrade(request, socket, head) Event: ‘initial_headers’ Event: ‘headers’ Event: ‘connection_error’ Engine The Eng...
  • Rooms

    Rooms Joining and leaving Default room Sample use cases Usage with asynchronous code Disconnection With multiple Socket.IO servers Implementation details Room events Roo...
  • Glossary

    Glossary Adapter Engine.IO Namespace Room Transport Glossary We will list here the terms that are related to the Socket.IO ecosystem: Adapter Engine.IO Namespace Room ...
  • 2.7.1 内部概述引擎底层依赖关系图

    引擎底层 Connection连接 升级 引擎底层 Connection连接 const client = io ( 'https://myhost.com' ) 执行以下步骤: 在客户端,创建一个engine.io-client 实例 engine.io-client 实例尝试建立轮询 传输 GET https : //m...
  • 1 指南(Guide)

    1-1 介绍(Introduction) 1-2 web框架(The web framework) 1-3 服务HTML(Serving HTML) 1-4 集成 socket.io(Integrating socket.io) 1-5 发送事件(Emiting events) 1-6 广播(Broadcasting) 1-7 作业(Home...
  • 7. Websocket

    WebSocket WebSocket Event Binding Middleware for onConnect Event Request Authenticated User Binding WebSocket APIs Usage Examples Customization WebSocket This is a very i...
  • 参考链接

    参考链接 参考链接 Ryan Stewart, Real-time data exchange in HTML5 with WebSockets Malte Ubl & Eiji Kitamura,Introducing WebSockets: Bringing Sockets to the Web Jack Lawson, WebSocket...
  • Installation

    Server Installation Prerequisites Installation Additional packages Other WebSocket server implementations Server Installation Prerequisites Please make sure that Node.js i...