- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在循环中使用 RemoteEndpoint.Async
的 sendText()
方法将一些数据发送到 ClientEndPoint
。由于数据是从 ServerEndpoint
异步发送的,因此 ClientEndpoint
会按照发送时的相同顺序接收数据吗?
最佳答案
没有必要。始终有 channel 线程在单个连接上将数据传输到 websocket 上的客户端。数据可以按任何顺序出现。虽然会尽快尝试传送数据,但可能会出现竞争条件。
关于java - WebSocket 的 ClientEndpoint 接收数据的顺序是否与 ServerEndpoint 发送的顺序相同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34394079/
我已经实现了 ServerEndPoint 和 ClientEndPoint,我该如何测试它?例如,我在 session 上有连接包装器,我想测试它依赖于 session 数据的行为,我还想测试客户端
我在 tomcat 7.0.53 中为 websocket 设置了以下 clientendpoint 类。它基于网站上的这个示例 https://blog.openshift.com/how-to-b
概述: 我目前有一个功能齐全的移动应用程序,可以通过 WebSocket 与 Windows 上运行的 Java 服务器进行通信。 ServerEndpoint 正在 AWS 计算机上运行。 Java
我在循环中使用 RemoteEndpoint.Async 的 sendText() 方法将一些数据发送到 ClientEndPoint。由于数据是从 ServerEndpoint 异步发送的,因此 C
我正在尝试使用 jetty 构建服务器客户端应用程序。我已经设置了一个jetty服务器并配置了websockets。在客户端和服务器之间发送文本消息工作正常。但是如何从客户端端点发送二进制数据作为输入
我想向容器实例化的 WebSocket 客户端端点添加一些附加属性以进行分组/统计。我使用 JSR-356 创建了一个客户端 WebSocket 端点: Session session = conta
1) 在 JavaSE-1.8 中使用 javax.websocket.ClientEndpoint 和 javax.websocket.OnMessage 2) 服务器(使用注释构建)发送长度为 2
我是一名优秀的程序员,十分优秀!