Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1005 Bytes

File metadata and controls

43 lines (33 loc) · 1005 Bytes

tio-websocket-spring-boot-starter

Intro

spring-spring-boot-starter for tio-websocket

Starter Repo

Github Sample
Gitee Sample

T-io Repo

Gitee Sample

Sample Repo

Github Sample
Gitee Sample

Install

  • dependency Spring-boot 2.0 +
  • dependency Lombok Plugins
<dependency>
    <groupId>net.zhfish.tio</groupId>
    <artifactId>tio-websocket-spring-boot-starter</artifactId>
    <version>0.0.1</version>
</dependency>

Use

Require:

  • @EnableTioWebsocketConfiguration
  • @TioController
  • @TIOnHandshake
  • @TIOnClose

Require eigher:

  • @TIOn(Text or Bytes)
  • or
  • @TIOnBefore(Text or Bytes)
  • @TIOnMap
  • @TIOnMap("event")