gevent-socketio Documentation Release 0.3.1
index modules | gevent-socketio 0.3.1 documentation » Gevent-socketio documentation Introduction Socket.IO is a WebSocket-like abstraction that enables real-time communication between a browser and 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 Only ~3 lines of code are required to tie-in gevent-socketio in your framework. Note: you need to use the gevent python WSGI server to use gevent- socketio. Namespaces: since you mostly have one websocket/socket0 码力 | 91 页 | 118.05 KB | 1 年前3gevent-socketio Documentation Release 0.3.1
gevent-socketio Documentation Release 0.3.1 Jeffrey Gelens,Alex Bourget,John Anderson March 19, 2015 Contents 1 Introduction 1 2 Concepts 3 3 Getting started 5 4 Examples 7 5 Security 9 6 API 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 Only ~3 lines of code are required to tie-in gevent-socketio in your framework. Note: you need to use the gevent python WSGI server to use gevent-socketio. Namespaces: since you mostly have one websocket/socket0 码力 | 23 页 | 117.07 KB | 1 年前3Learning Socket.IO
server: var express = require('express'); var socketio = require('socket.io'); var app = express(); var server = http.createServer(app); var io = socketio(server); io.on('connect', function (socket)0 码力 | 15 页 | 870.16 KB | 1 年前3ThinkJS 2.0 中文文档
messages: { open: 'home/socketio/open', // WebSocket �������� Action close: 'home/socketio/close', // WebSocket ������ Action adduser: 'home/socketio/adduser', //adduser ����� Action0 码力 | 238 页 | 1.87 MB | 1 年前3ThinkJS 2.1 Documentation
messages: { open: 'home/socketio/open', // works on Websocket connected. close: 'home/socketio/close', // works on Websocket closed. adduser: 'home/socketio/adduser', // works when adduser0 码力 | 148 页 | 1.69 MB | 1 年前3ThinkJS 2.0 Documentation
messages: { open: 'home/socketio/open', // works on Websocket connected. close: 'home/socketio/close', // works on Websocket closed. adduser: 'home/socketio/adduser', // works when adduser0 码力 | 141 页 | 1.61 MB | 1 年前3ThinkJS 2.2 Documentation
messages: { open: 'home/socketio/open', // works on Websocket connected. close: 'home/socketio/close', // works on Websocket closed. adduser: 'home/socketio/adduser', // works when adduser0 码力 | 156 页 | 2.62 MB | 1 年前3ThinkJS 2.2 中文文档
{ messages: { open: 'home/socketio/open', // WebSocket 建⽴立连接时处理理的 Action close: 'home/socketio/close', // WebSocket 关闭时处理理的 Action adduser: 'home/socketio/adduser', //adduser 事件处理理的 Action0 码力 | 277 页 | 3.61 MB | 1 年前3美团点评2018技术年货
证,健壮性无比强大。 背景 背景 最近在做一个基于 Websocket 的长连中间件,服务端使用实现了 Socket.IO 协议(基于WebSocket协 议,提供长轮询降级能力) 的 netty-socketio 框架,该框架为 Netty 实现,鉴于本人对 Netty 比较 熟,并且对比同样实现了 Socket.IO 协议的其他框架,Netty 的口碑都要更好一些,因此选择这个框架作 为底层核心。 的内存,随着Bug被触发,内存也没有释放。问题缩小之后,接下来开始“撸源码”,捉虫! 阶段7:线下排查 阶段7:线下排查 接下来,我们将本地服务重启,开始完整的线下排查过程。同时将目光定位到 netty-socketio 这个框架 的 Disconnect 事件(客户端WebSocket连接关闭时会调用到这里),基本上可以确定,在 Disconnect 事件前后申请的内存并没有释放。 在使用 idea debug0 码力 | 229 页 | 61.61 MB | 1 年前3Python 标准库参考指南 3.13
返回一个根据文件对象进行更新的摘要对象。 fileobj 必须是一个以二进制模式打开用于读取的文件型对象。它接受来自内置open(), BytesIO 实例, socket.socket.makefile() 创建的 SocketIO 及其他类似的文件对象。此函数也可能绕过 Python 的并直接使用来自fileno() 的文件描述符。在此函数返回或引发异常之后必须假定 fileobj 已处于未知状态。应当由调用方来负责关闭0 码力 | 2246 页 | 11.74 MB | 9 月前3
共 15 条
- 1
- 2