Learning Socket.IO### LEARNING socket.io Free unaffiliated eBook created from Stack Overflow contributors. ## Table of Contents About ..... 1 Chapter 1: Getting started with socket.io ..... 2 Remarks ..... 2 Versions Events ..... 7 Examples ..... 7 Fire Custom Events ..... 7 Chapter 4: Handling users with socket.io ..... 8 Introduction ..... 8 Examples ..... 8 Example Server Side code for handling Users could benefit from it, downloaded the latest version from: socket-io It is an unofficial and free socket.io ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation0 码力 | 15 页 | 870.16 KB | 2 年前3
gevent-socketio Documentation
Release 0.3.1# Gevent-socketio documentation ## I ntroduction Socket.IO is a WebSocket-like abstraction that enables real-time communication between a browser and a server. gevent-socketio is a Python implementation implementation of the protocol. The reference server implementation of Socket.IO runs on Node.js and was developed by LearnBoost. There are now server implementations in a variety of languages. One aim of this gevent python WSGI server to use gevent-socketio. Namespaces: since you mostly have one websocket/socket.io endpoint per website, it is important to be able to namespace the different real-time activities0 码力 | 91 页 | 118.05 KB | 2 年前3
gevent-socketio Documentation
Release 0.3.17 5 Security 9 6 API docs 11 7 References 13 8 Contacts 15 9 Credits 17 10 TODO 19 Socket.IO is a WebSocket-like abstraction that enables real-time communication between a browser and a server gevent-socketio is a Python implementation of the protocol. The reference server implementation of Socket.IO runs on Node.js and was developed by LearnBoost. There are now server implementations in a variety gevent python WSGI server to use gevent-socketio. Namespaces: since you mostly have one websocket/socket.io endpoint per website, it is important to be able to namespace the different real-time activities0 码力 | 23 页 | 117.07 KB | 2 年前3
67-328 Building Distributed Applications WebSockets
## 67 -328 Building Distributed Applications WebSockets ### HTTP / AJAX / WebSockets / Socket.io • Recall that HTTP is request/response protocol • AJAX allows you to do HTTP request/response within message • And send messages to the client ### Socket.io • Library for full-duplex communication between clients and servers - Built on engine.io, socket.io provides an abstraction above whatever transport transport methods are available in the browser: – WebSockets — Long Polling ### Socket.io • Also provides a simple abstraction for event-based programming across the server and multiple clients • Clients0 码力 | 13 页 | 1.04 MB | 2 年前3
ThinkJS 2.0 Documentation## Supports multiple WebSocket libraries ThinkJS supports some common WebSocket libraries like socket.io and sockjs, and packages them to provide the consistent APIs to developers. ## Plentiful test cases various functions such as chatroom. ThinkJS supports a lot of WebSocket libraries, for instance, socket.io, sockjs etc. Further more, by giving a simple encapsulation to these libraries, ThinkJS provided WebSocket library name, defaults to socket.io allow_origin: '', // origin allowed adapter: undefined, // store adapter for socket, used in socket.io path: "", // url path for0 码力 | 141 页 | 1.61 MB | 2 年前3
ThinkJS 2.1 DocumentationSupports multiple WebSocket libraries ThinkJS supports some common WebSocket libraries like socket.io and sockjs, and packages them to provide the consistent APIs to developers. ## Plentiful Test Cases various functions such as chatroom. ThinkJS supports a lot of WebSocket libraries, for instance, socket.io, sockjs etc. Further more, by giving a simple encapsulation to these libraries, ThinkJS provided WebSocket library name, defaults to socket.io allow_origin: '' // origin allowed adapter: undefined, // store adapter for socket, used in socket.io path: '', // url path for0 码力 | 148 页 | 1.69 MB | 2 年前3
ThinkJS 2.2 DocumentationSupports multiple WebSocket libraries ThinkJS supports some common WebSocket libraries like socket.io and sockjs, and packages them to provide the consistent APIs to developers. ## Plentiful Test Cases various functions such as chatroom. ThinkJS supports a lot of WebSocket libraries, for instance, socket.io, sockjs etc. Further more, by giving a simple encapsulation to these libraries, ThinkJS provided WebSocket library name, defaults to socket.io allow_origin: "", // origin allowed adapter: undefined, // store adapter for socket, used in socket.io path: "", // url path for0 码力 | 156 页 | 2.62 MB | 2 年前3
ThinkJS 2.0 中文文档接口,不用写任何的代码即可完成 REST API 的开发。如果想在 REST 接口中过滤字段或者进行权限校验,也很方便处理。 ## 支持多种 WebSocket 库 ThinkJS 支持 socket.io,sockjs 等常见的 WebSocket 库,并且对这些库进行包装,抹平各个库之间接口调用上的差异,给开发者一致的体验。 ## 丰富的测试用例 ThinkJS 含有 1500+ 的测试用例,代码覆盖率达到 Adapter 请参见 Adapter -> 介绍。 ## WebSocket 项目里经常要使用 WebSocket 来实现聊天等功能,ThinkJS 支持多种 WebSocket 库,如:socket.io,sockjs 等,并对这些库进行了一些简单的包装,让使用的接口一致。 ## 开启 WebSocket WebSocket 功能默认是关闭的,项目如果需要开启,可以修改配置文件 src/ 'socket.io', // 使用的 WebSocket 库类型,默认为 socket.io allow_origin: "", // 允许的 origin adapter: undefined, // socket 存储的 adapter, socket.io 下使用 path: "", // url path for websocket0 码力 | 238 页 | 1.87 MB | 2 年前3
ThinkJS 2.2 中文文档接口,不用写任何的代码即可完成 REST API 的开发。如果想在 REST 接口中过滤字段或者进行权限校验,也很方便处理。 ## 支持多种 WebSocket 库 ThinkJS 支持 socket.io,sockjs 等常见的 WebSocket 库,并且对这些库进行包装,抹平各个库之间接口调用上的差异,给开发者一致的体验。 ## 丰富的测试用例 ThinkJS 含有 1500+ 的测试用例,代码覆盖率达到 Adapter 请参见 Adapter -> 介绍。 ## WebSocket 项目里经常要使用 WebSocket 来实现聊天等功能。ThinkJS 支持多种 WebSocket 库,如: socket.io,sockjs 等,并对这些库进行了一些简单的包装,让使用的接口一致。 ## 开启 WebSocket WebSocket 功能默认是关闭的,项目如果需要开启,可以修改配置文件 src/ type: 'socket.io', // 使用的 WebSocket 库类型,默认为 socket.io allow_origin: "", // 允许的 origin adp: undefined, // socket 存储的 adapter, socket.io 下使用 path: "", // url path for websocket0 码力 | 277 页 | 3.61 MB | 2 年前3
Laravel 5.3 中文文档JavaScript 包,将和 Laravel 5.3 一起发布,用于为订阅频 道以及在客户端 JavaScript 应用中监听服务器端事件提供了简单、优美的 API, Echo 包含对 Pusher 和 Socket.io 的支持: Echo.channel('orders.' + orderId) .listen('ShippingStatusUpdated', (e) => socket ID 的用户。 Socket.IO 如果你想配对 Redis 广播和 Socket.IO 服务器,则需要在应用的 HTML 元素 head 中引入 Socket.IO JavaScript 库: 接下来,你需要使用 socket.io 连接器和 host 来实例化 'socket.io', host: 'http://app.dev:6001' }; 最后,需要运行一个与之兼容的 Socket.IO 服务器。Laravel 并未内置一个 Socket.IO 服务器实现,不过,这里有一个第三方实现的 Socket.IO 驱动:tlaverdure/laravel-echo-server。 ## 队列预备知识 在开始介绍广播事件之前,还需要配置并0 码力 | 691 页 | 9.37 MB | 2 年前3
共 19 条
- 1
- 2













