{"repo":"YeautyYE/netty-websocket-spring-boot-starter","free":true,"listed":false,"github":"https://github.com/YeautyYE/netty-websocket-spring-boot-starter","clone":"git clone https://github.com/YeautyYE/netty-websocket-spring-boot-starter.git","description":":rocket: lightweight high-performance WebSocket framework （ 轻量级、高性能的WebSocket框架）","language":"Java","stars":1935,"topics":["spring-boot","netty","netty-spring-boot-starter","spring-boot-starter","annotation","im","chat","asynchronous","websocket","spring-boot-websocket"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"netty-websocket-spring-boot-starter =================================== 中文文档 (Chinese Docs) About netty-websocket-spring-boot-starter will help you develop WebSocket server by using Netty in spring-boot,it is easy to develop by using annotation like spring-websocket Requirement - jdk version 17 Quick Start - add Dependencies: - annotate @ServerEndpoint on endpoint class，and annotate @BeforeHandshake , @OnOpen , @OnClose , @OnError , @OnMessage , @OnBinary , @OnEvent on the method. e.g. - use Websocket client to connect ws://127.0.0.1:80/ws/xxx Annotation @ServerEndpoint declaring ServerEndpointExporter in Spring configuration,it will scan for WebSocket endpoints that be annotated with ServerEndpoint . beans that be annotated with ServerEndpoint will be registered as a WebSocket endpoint. all configurations are inside this annotation ( e.g. @ServerEndpoint(\"/ws\") ) @BeforeHandshake when there is a connection accepted,the method annotated with @BeforeHandshake will be called classes which be injected to the method are:Session,HttpHeaders... @OnOpen when there is a WebSocket connection completed,the method annotated with @OnOpen will be called classes which be injected to the method are:Session,HttpHeaders... @OnClose when a WebSocket connection closed,the method annotated with @OnClose will be called classes which be injected to the method are:Session @OnError when a WebSocket connection throw Throwable, the method annotated with @OnError will be called classes which be injecte","default_branch":null,"files":null,"tree":[],"storefront":"/r/YeautyYE","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YeautyYE/netty-websocket-spring-boot-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}