java-websocket Questions
1
I am establishing WebSocket connectivity where the server is built using javax.websocket and the client is in JavaScript.
This code is working fine. But after some time session is closed. I want to...
Shaylyn asked 14/3, 2017 at 7:5
3
Solved
I have a websocket connection to a server:
import javax.websocket.*;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
@ClientEndpoint
public class WebsocketExa...
Janessajanet asked 1/5, 2018 at 13:21
5
Solved
I am connecting to a websocket server in Java using javax.websocket classes.
import javax.websocket.DeploymentException;
import javax.websocket.Session;
import javax.websocket.WebSocketContainer;
...
Gambol asked 29/6, 2015 at 12:2
1
Solved
Forgive me for the newb question, but I am confused and obviously not understanding the fundamentals or explanations of how to use a Websocket server hosted over HTTPS. Everything I find online lea...
Gravois asked 10/1, 2022 at 15:9
1
I need to write chat. But I have a problem, I can't trigger MessageMapping controller. App contains of 2 parts, front-end which runs on 4200 port and back-end which is running on 8080 port. I have ...
Crash asked 3/9, 2017 at 12:20
3
Solved
I am writing a small game server using Java.
I use TooTallNate-Java-Websockets library to create my websocket server.
Everything works when I run my server on localhost , I can connect to it from ...
Camden asked 30/5, 2015 at 17:37
1
For a customer we build a HTML5 websocket application with Tomcat 8.0.29.
If we start the application from our network or from our home network all works fine. But if the customer starts the applic...
Ambulance asked 8/12, 2015 at 12:19
2
Solved
I'm building a simple JSF 2.3 app in tomcat 8.5. I got the websocket working, and then I added Pretty Faces.
If I use them separately, they both work. I mean, if I remove Pretty Faces' dependencie...
Gladiate asked 6/11, 2019 at 1:33
1
Solved
I received a Web application, implemented with Spring using STOMP over WebSockets Messaging, similar to what's described here (with RabbitMQ at the backend). It runs on Tomcat, and I can connect to...
Morty asked 8/8, 2016 at 0:37
3
Solved
Stomp.js is out of date and no longer maintained - which Stomp client to use with Spring Websockets?
I found it surprising that the current documentation for the Spring WebSocket Support directs users to use stomp.js for their client-side JavaScript implementation.
This project, on the ReadMe on i...
Coronet asked 13/12, 2016 at 10:51
4
Solved
I need to get the ServletContext from inside a @ServerEndpoint in order to find Spring ApplicationContext and lookup for a Bean.
For the moment my best approach is to bind that bean in the JNDI na...
Wentz asked 19/2, 2014 at 17:52
4
Solved
I'm currently developing a Java WebSocket Client Application and I have to make sure that every message from the server is received by the client. Is it possible that I lose some messages (once the...
Soilure asked 9/9, 2015 at 7:57
2
Solved
I developed a breakout alike game with a friend using HTML5 WebSockets and java as backend and recently deployed my game on a Glassfish server that's running on the 20$ Digitalocean droplet (3GB ra...
Theomachy asked 10/12, 2017 at 15:11
1
Solved
I need to access a websocket server that runs with SignalR Hub, from my Java desktop application.
There is a library that does exactly that, but it's dead. There are lots of issues and pull reque...
Curtsy asked 11/10, 2017 at 6:38
1
Solved
What is the procedure to change ws into wss?
Whether wss is make upgrade over normal HTTP or wss works only HTTPS?
webSocket = new WebSocket("ws://localhost:port/Esv/ocp");
works fine, when I c...
Thrashing asked 4/10, 2017 at 5:17
2
Solved
How do I properly close a websocket and and provide a clean, informative response to the client when an internal error occurs on my server? In my current case, the client must provide a parameter w...
Lexy asked 2/9, 2017 at 2:10
1
Solved
I have a standard websocket endpoint based on Tyrus implementation which times to times triggers the java.lang.IllegalStateException: Cannot set WriteListener for non-async or non-upgrade request. ...
Messer asked 3/8, 2017 at 14:10
1
Solved
I am configuring currently my Spring Websocket using the class
public class WebSocketConfig extends WebSocketMessageBrokerConfigurationSupport
now I came across the advice Spring STOMP Websocket...
Underpainting asked 26/4, 2017 at 15:0
1
Solved
I need to setup a websocket server which can receive audio data sent by the client. I am using Jetty for this.
My handler code :
{
@OnWebSocketClose
public void onClose(int statusCode, String rea...
Hangup asked 1/4, 2017 at 6:55
0
'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 environment configuration is JRE 1.7 and Tomcat 7.
import java.net.URI;
import javax.websocket.Cl...
Warner asked 12/3, 2017 at 12:41
1
Solved
I'm trying to do a connection between a server in Java and a JavaScript client but I'm getting this error on client side:
WebSocket connection to 'ws://127.0.0.1:4444/' failed: Connection close...
Eisen asked 4/1, 2017 at 18:7
3
I am attempting to use the Java-Websocket library by TooTallNate to create a websocket client that receives messages from the coinbase exchange websocket stream. I am porting a program I made in Py...
Casimir asked 6/1, 2016 at 7:42
1
I don't understand how properly write a test case for websocket in springboot application. I have a class that implement WebSocketHandler and I add this handler in WebSocketConfigurer:
@Configurat...
Gaeta asked 18/6, 2016 at 16:36
2
Solved
I am new to websockets and when I tried to pass a JSON with a length greater than 8192, the websocket disconnected immediately. However JSON with length <= 8191 works fine.
Is there any MAX SIZE...
Dendy asked 31/8, 2015 at 11:1
2
I am new websocket and refering to the below Spring Websocket tutorial and it is working fine in my system. I am also using stomp.js and sockjs-0.3.4.js.
https://spring.io/guides/gs/messaging-stom...
Emarginate asked 31/7, 2016 at 15:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.