//package com.iailab.module.event.ws;
|
//
|
//import org.java_websocket.client.WebSocketClient;
|
//import org.springframework.context.annotation.Bean;
|
//import org.springframework.context.annotation.Configuration;
|
//
|
//import java.net.URI;
|
//import java.net.URISyntaxException;
|
//
|
//@Configuration
|
//public class EventWsBean {
|
//
|
// @Bean
|
// public WebSocketClient webServiceClient() {
|
// try {
|
// EventWebSocketClient mWebSocketClient = new EventWebSocketClient(new URI("ws://192.168.55.127/api/Ws/Event"));
|
// mWebSocketClient.connect();
|
// return mWebSocketClient;
|
// } catch (URISyntaxException e) {
|
// e.printStackTrace();
|
// }
|
// return null;
|
// }
|
//}
|