Comments (2)
@kingctan 每一次HTTP request都会建立一个新的TCP连接,websocket也一样。所以即使是同一个浏览器发送了多次HTTP request也都是不同的连接。只有调用js中WebSocket对象的send方法发送的数据,才会进行websocket的传输。不知道你说的“视为一个连接”是不是指的这个。而因为不同的页面不能共享js中WebSocket的对象,所以也就不视为一个连接。
from dwebsocket.
这同socket的性质是一样的。
from dwebsocket.
Related Issues (20)
- 当有多个浏览器同时连接websocket后,怎么才能将消息反回给对应的浏览器?
- EOFError: EOF when reading a line, websocket has been closed
- vim 命令 报编码错误
- Django2.1.5中出现Bad Request错误,退回Django2.1.4后正常 HOT 1
- django1.11 + rest_framework 时request会被重新封装,导致is_websocket找不到请求中的META
- 请问支持django2.2吗 HOT 8
- How to close websocket connection gracefully from the dwebsocket server HOT 5
- 用nginx做代理,一直无法发信息 HOT 1
- django got ConnectionAbortedError after browser call ws.close() HOT 2
- 'DefaultWebSocket' object has no attribute 'is_closed' HOT 2
- @accept_websocket gives Bad file descriptor error
- 请问有没有可以使用redis数据库的后端程序
- gunicorn 启动后,正常传输数据,但是关闭连接的时候会报错OSError: [Errno 9] Bad file descriptor HOT 2
- [Feature] Add Ping/Pong to check if websocket is active.
- middleware = middleware_class(view_func, *m_args, **m_kwargs) TypeError: middleware_class takes no arguments HOT 1
- WebSocket ",,," failed: Invalid frame header
- websocket请求使用了子协议传递参数,最后链接报错
- 1006 连接断开
- 本地测试可以群发,部署到服务器上要怎么群发消息? HOT 1
- protocols.py 中select在anaconda win32x的错误 未找到POLLIN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwebsocket.