vite.api.service.ViteWebSocket Maven / Gradle / Ivy
The newest version!
package vite.api.service;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import vite.api.vo.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.*;
public abstract class ViteWebSocket extends WebSocketClient {
public ViteWebSocket(String url) throws URISyntaxException {
super(new URI(url));
// 连接地址
}
public void send(RequestJson requestJson) {
super.send(JSONObject.toJSONString(requestJson));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy