- Java EE 8 High Performance
- Romain Manni Bucau
- 74字
- 2021-06-30 19:14:25
Get the price, the WebSocket way
The WebSocket endpoint is deployed on /<application_context>/quote, and some exchanges can look like the following:
connect> ws://localhost:9090/quote-manager/quote
send> {"name":"VNET"}
received< {"found":true,"value":5.19}
send> {"name":"DDD"}
received< {"found":true,"value":12.56}
disconnect>
Connection closed: Close status 1000 (Normal Closure)
What is interesting to see in this communication dump is the fact that the connection lasts for more than one request, and it is based on the symbol more than the identifier (compared to the previous JAX-RS samples).
推薦閱讀
- 電腦組裝與系統安裝
- Kali Linux滲透測試全流程詳解
- Extending Bootstrap
- Linux網絡內核分析與開發
- Instant Optimizing Embedded Systems using Busybox
- 嵌入式實時操作系統μC/OS原理與實踐
- VMware NSX Cookbook
- Kali Linux高級滲透測試
- Linux基礎使用與案例
- HTML5 Enterprise Application Development
- Advanced Infrastructure Penetration Testing
- μC/OS-III內核實現與應用開發實戰指南:基于STM32
- 大學計算機應用基礎實踐教程(Windows 7+MS Office 2010)
- Serverless Architectures with Kubernetes
- 微軟360度