Every day good good study ~~~
A .websocket usage scenarios
Barrage 1.B stations, messaging client, the server on display. Visible to all users, specify the client or the client is visible.
Two: technical framework basic introduction: springboot
1, to simplify the development process and initial set up new applications Spring 2, embedded Tomcat, without deploying WAR file 3, Maven simplified configuration, automatic configuration Spring
Learning materials: 1, the official website https://projects.spring.io/spring-boot 2, springboot integration websocket information: https://spring.io/guides/gs/messaging-stomp-websocket/
Three: Introduction What is simple springboot, socketjs, stompjs, and solve the browser compatibility problems.
Socketjs:
1, is a browser JavaScript library that provides a similar WebSocket object.
2, a JavaScriptAPI a coherent cross-browser, between the browser and the Web server creates a low latency, full-duplex, cross-domain communication channel
3, at the bottom SockJS tries to use local WebSocket. If it fails, it can use a variety of browser-specific transport protocol, and present them in an abstract way through a similar WebSocket
4, SockJS intended to apply to all modern browsers and does not support WebSocket protocol environment.
Four: a simple broadcast technology websocket game announcement system, "a"
Reproduced in: https: //www.cnblogs.com/maowuyu-xb/p/11043662.html