[Task] <support monitoring WebSocket metrics>
Description
support monitoring WebSocket metrics, available, response time and more.
Task List
- [ ] support monitoring WebSocket metrics
- [ ] add help doc
I made a request through the Java. net. Socket class, but its connect method seems to be unable to set a timeout,
Here are the relevant discussions
https://stackoverflow.com/questions/12976608/whats-the-connection-timeout-of-a-socket-created-with-a-connecting-constructor
https://github.com/TooTallNate/Java-WebSocket This is also an option
Hi we can consider not supporting users to set connect timeout. About thrid library, it's up to you to decide whether to use it.π
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient();
container.connectToServer(client, new URI(uri));
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient();
container.connectToServer(client, new URI(uri));
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient(); container.connectToServer(client, new URI(uri));
The socket I'm using returns the following, I can try replacing it with websocket
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient(); container.connectToServer(client, new URI(uri));
The websocket seems to be asynchronous and cannot confirm whether it is appropriate to store the serverHandshake response in the map
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient(); container.connectToServer(client, new URI(uri));The websocket seems to be asynchronous and cannot confirm whether it is appropriate to store the serverHandshake response in the map If I use CountDownLatch to wait, it will keep blocking, I don't know why
hi how about use java websocket api instead of socket. tcp protocol -> http protocol -> websocket protocol maybe like this, i am not sure it's ok.
WebSocketClient client = new WebSocketClient(); container.connectToServer(client, new URI(uri));The websocket seems to be asynchronous and cannot confirm whether it is appropriate to store the serverHandshake response in the map If I use CountDownLatch to wait, it will keep blocking, I don't know why
Import error..
hi try the uri like this String uri = "ws://localhost:8080/your-websocket-endpoint";
ππ GreatοΌIt's work, you decide which one way we use.
hi try the uri like this
String uri = "ws://localhost:8080/your-websocket-endpoint";
You're right, it's true that I wrote the wrong uriοΌIt works
and nedd the dependency
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.5.2</version>
<scope>compile</scope>
</dependency>
ππ GreatοΌIt's work, you decide which one way we use.
Extra packages needed to be introduced, and at the same time it seemed that there wasn't enough information to get the handshake, so I used the socket
Extra packages needed to be introduced, and at the same time it seemed that there wasn't enough information to get the handshake, so I used the socket !
πποΌ

