mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-15 07:03:49 +08:00
WebFlux 中 WebSocket 实现通信
This commit is contained in:
@@ -7,6 +7,8 @@ import java.net.URI;
|
||||
import java.time.Duration;
|
||||
|
||||
public class WSClient {
|
||||
|
||||
|
||||
public static void main(final String[] args) {
|
||||
final WebSocketClient client = new ReactorNettyWebSocketClient();
|
||||
client.execute(URI.create("ws://localhost:8080/echo"), session ->
|
||||
|
||||
Reference in New Issue
Block a user