书栈网 · BookStack 本次搜索耗时 0.026 秒,为您找到 415 个相关结果.
  • 2.4.2 在节点之间传递事件

    在节点之间传递事件 在节点之间传递事件 既然您有多个Socket.IO节点可以接受连接,那么如果您想向每个人(甚至是某个 房间 中的每个人)广播事件,那么就需要在进程或计算机之间传递消息。 负责路由消息的接口就是我们所称的Apdapter 。您可以在 socket.io-adapter 上实现自己的(通过从socket.io-adapter继承)...
  • Migrating from 2.x to 3.0

    Migrating from 2.x to 3.0 Configuration Saner default values CORS handling No more cookie by default API change io.set() is removed No more implicit connection to the default ...
  • 4.1.1 HTTP服务选项 new_server_httpserver_options

    Server new Server(httpServer[,options]) Server 暴露 require('socket.io') new Server(httpServer[,options]) httpServer (http.server) 要绑定到服务器 options (Object) 新旧比较: const i...
  • WebSocket

    WebSocket 开启 WebSocket 事件到 Action 的映射 Action 处理 emit broadcast socket 对象 事件数据 socket.io io 对象 设置 path 设置 adapter socket.io client 校验用户登录 聊天代码示例 SockJS 配置 sockjs 对象 ...
  • Initialization

    Client Initialization From the same domain From a different domain Custom namespace Options IO factory options forceNew multiplex Low-level engine options transports upgr...
  • Logging and debugging

    Logging and debugging Available debugging scopes Removing debug from your browser bundle Error logs in the browser console Logging and debugging Socket.IO is now completely i...
  • 2.3.1 身份验证差异

    身份验证差异 Socket.io 现使用中间器件 现通过中间件进行身份验证更简单 命名空间授权? 身份验证差异 Socket.io 现使用中间器件 可以通过io.use()为socket.io服务器提供任意函数,该函数在创建socket时运行。查看此示例: const srv = require ( 'http' ). createServ...
  • Broadcasting events

    Broadcasting events To all connected clients To all connected clients except the sender With multiple Socket.IO servers Broadcasting events Socket.IO makes it easy to send ev...
  • Broadcasting events

    Broadcasting events To all connected clients To all connected clients except the sender With multiple Socket.IO servers Broadcasting events Socket.IO makes it easy to send ev...
  • Adapters

    Adapters Extend socket.io Ws library Advanced (custom adapter) Example Adapters The WebSockets module is platform-agnostic, hence, you can bring your own library (or even a ...