Top "Java-websocket" questions

Use this tag for questions related to Java based server side implementation of WebSocket.

What is a simple way to implement a websocket client in Android? Is the following example correct?

I was trying to use a class that implements a WebSocket client in Android. But I get the following error: 12…

android websocket network-programming java-websocket
Difference between ws and wss?

What is the procedure to change ws into wss? Whether wss is make upgrade over normal HTTP or wss works …

websocket java-websocket
What is the maximum size of data that can be passed through a WebSocket?

I am new in Java WebSocket. When I tried to pass a JSON with length greater than 8192, the websocket disconnected …

java json websocket java-websocket
'java.security.cert.CertificateExpiredException: NotAfter' upon connecting secure web socket

I am trying to connect to a secured web socket to consume a API. Below is the source code. Hosting …

java ssl openshift keystore java-websocket
Java server JavaScript client WebSockets

I'm trying to do a connection between a server in Java and a JavaScript client but I'm getting this error …

javascript java websocket java-websocket
Accessing ServletContext and HttpSession in @OnMessage of a JSR-356 @ServerEndpoint

I need to get the ServletContext from inside a @ServerEndpoint in order to find Spring ApplicationContext and lookup for a …

servlets jakarta-ee websocket httpsession java-websocket
Multithreading with websockets

This is more a design question. I have the following implementation Multiple Client connections -----> Server ------> Corresponding …

java multithreading tomcat java-websocket
How to add headers in Java Websocket client

I am connecting to a websocket server in Java using javax.websocket classes. import javax.websocket.DeploymentException; import javax.websocket.…

java websocket java-websocket
Close websocket connection with Java

How to close a websocket connection using Java WebSocket API? I have used Java websocket API for both server and …

java java-websocket
How to check is a Websocket connection is alive

I have a websocket connection to a server: import javax.websocket.*; import java.io.IOException; import java.net.URI; import …

java websocket java-websocket