About 1,870,000 results
Open links in new tab
  1. How to implement a WebSocket Server in java? - Stack Overflow

    Sep 13, 2019 · I'm working on setting up my first websocket server for a communications app. I can't seem to figure out how websockets are implemented in Java. I've tried, unsuccessfully, …

  2. java - javax.websocket client simple example - Stack Overflow

    Can someone please provide me very simple example of websocket client using javax.websocket? I want to connect to websocket (ws://socket.example.com:1234), send …

  3. Require assistance with simple pure Java 11 WebSocket client …

    Mar 27, 2019 · There appears to be very little Java 11 (pure Java non framework based) WebSocket client code examples on the web so I'm hoping StackOverflow can come to the …

  4. What is a simple way to implement a websocket client in Android?

    Dec 7, 2015 · android websocket network-programming java-websocket asked Dec 7, 2015 at 10:47 Kreshnik 2,851 5 36 39

  5. How to add headers in Java Websocket client - Stack Overflow

    Jun 29, 2015 · I am connecting to a websocket server in Java using javax.websocket classes. import javax.websocket.DeploymentException; import javax.websocket.Session; import javax ...

  6. sockets - Java websocket client throws exception at send method ...

    I got a Java project that is supposed to create a websocket client using TooTallNate. Everything seems to be working, connection is succesful to the websocket server but when I call the send …

  7. Standalone WebSocket server without JEE/application server

    I need to implement a fairly simple WebSocket server in Java SE. All it needs to do is accept connections and store the respective sessions, then send a message to all connected client …

  8. How to check is a Websocket connection is alive - Stack Overflow

    May 1, 2018 · I have a websocket connection to a server: import javax.websocket.*; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException ...

  9. How to send a message through web socket to a connected user?

    Seems that your implementation is wrong. You should use a static map to store Session with key is id or something can be reference/identifier. - When client is connected, store its session to …

  10. java - javax.websocket Client - Stack Overflow

    Aug 17, 2021 · I am trying to set up a websocket client in Java. I've followed the exact steps to this accepted answer, but when it runs I get a java.lang.RuntimeException: Could not find an …