Questions tagged [tyrus]

Tyrus is a reference implementation of JSR-356: WebSocket API for Java

Tyrus is the open source JSR 356 - Java API for WebSocket reference implementation for easy development of WebSocket applications. WebSocket protocol defined by IETF provides bi-directional communication between the server and the remote host. The pros are mainly the ability to communicate both ways, low latency and small communication overhead. Therefore Tyrus and WebSocket in general are suitable for web applications that require sending a huge volume of relatively small messages like online games or market ticker broadcasting.

The governance policy is the same as the one used in the GlassFish project. We also use the same two licenses - CDDL 1.1 and GPL 2 with CPE - so, you can pick which one suites your needs better.

120 questions
0
votes
1 answer

Incorrect file being produced using websockets in helidon

I am trying to upload a file using websockets in Helidon.I think i am doing it write the right way but the code seems to be flaky in terms of the size of the file produced which is different. The size of the file being produced is different for…
Anshul
  • 109
  • 1
  • 11
0
votes
1 answer

Smaller deps for spring stomp websocket client

I am using spring stomp websocket on a Java client using StandardWebSocketClient, much like this example: https://www.baeldung.com/websockets-api-java-spring-client Using spring-boot-starter-websocket maven dep adds too many deps that are not needed…
Thiago Sayão
  • 2,197
  • 3
  • 27
  • 41
0
votes
1 answer

How to make websocket synchronous

I have implemented a websocket client program using tyrus referring this example. There it was implemented in a assynchronous way. Now I want make it synchronous so that once I send a request, program will wait till the response received. Is it…
0
votes
0 answers

Unable to run client endpoint code for websocket implementation in Java (Class file not found error)

I am trying to create a client socket for a web sockets implementation. I am using the code from: https://dzone.com/articles/sample-java-web-socket-client The code is importing some javax.websocket.* class files. I have downloaded the jar files from…
Akriti
  • 1
  • 1
  • 5
0
votes
1 answer

Message handling in onMessage WebSocket

I'm trying to implement a WebSocket client. My code is here: import org.json.JSONObject; import javax.websocket.*; import java.io.IOException; public class MyClientEndpoint extends Endpoint { private Session session; @Override public void…
Dina Bogdan
  • 4,345
  • 5
  • 27
  • 56
0
votes
1 answer

How to deploy .jsp with Tyrus websocket server?

So I have a server endpoint that gets deployed via a websocket server using Tyrus. Several swing apps I have written use this server endpoint to communicate. However I would like to also deploy a .jsp web page on this same server. As of now I am…
user2692560
  • 71
  • 2
  • 9
0
votes
1 answer

convert a simple maven websocket tyrus project to javac command line

Out of curiosity I'd like to build a simple websockets tyrus server chat project with javac and libraries in -classpath. Yes, I know that this is not the standard way (mvn is), but I'm doing it as a proof of concept. I manage to get project built…
francesc
  • 343
  • 3
  • 12
0
votes
0 answers

Exception while deploying Tyrus websocket as OSGI bundle on Glassfish

I have running tyrus websocket server standalone and without any problem but when i deploy OSGI bundle and try to start a tyrus server from bundleActivator class then getting exception otherwise when i run tyrus server locally it is running without…
user565
  • 871
  • 1
  • 22
  • 47
0
votes
0 answers

Unable to deploy Tyrus application on glassfish server

I am trying to run tyrus websocket server through EJB on glassfish. It seems to be some kind of version conflict and bean failed to deploy. Here is exception: javax.ejb.EJBException: javax.ejb.CreateException: Initialization failed for Singleton…
user526206
0
votes
1 answer

Java8 Secure WebSocket Handshake Problems (Tyrus and Jetty)

I'm attempting to implement a WebSocket Client in an application that supports secure transmissions through SSL. The application already supports standard SSL connections over HTTP, by implementing custom Key and Trust managers (these custom…
Robert K
  • 472
  • 4
  • 17
0
votes
1 answer

Tryus websocket client - onMessage does not get called although connection is succesful

I am successfully connecting to a local websocket server with tyrus, but the onMessage method does not get called. I setup Fiddler as proxy in between and I see that the server responds with two messages, however, they are not printed out in my…
Christoph S
  • 697
  • 1
  • 6
  • 29
0
votes
1 answer

Java Tyrus WebSocket Client @OnMessage method gets called on 'different' object

I have created a WebSocket client using Tyrus. The problem happens in the @OnMessage annotated instance method. Within the enclosing class I have three things that seem to both have conflicting instance contexts. I have a Logger instance in the…
Rohan Panchal
  • 1,211
  • 1
  • 11
  • 28
0
votes
0 answers

Tyrus websocket handshake error

I am using compile group: 'org.glassfish.tyrus.bundles', name: 'tyrus-standalone-client', version: '1.13' My server is up and running, but my client fails to connect sometimes.With the following error. This is for a chat app. Code : public…
Ronak Mutha
  • 304
  • 1
  • 2
  • 13
0
votes
1 answer

Atmosphere+Jersey error with Tomcat 8 and non-Atmosphere client

I run a chat server that uses Atmosphere as the framework for websocket support. Atmosphere uses Jersey because I use the atmosphere-jersey maven dependency. The chat server runs on Tomcat 7 and we are upgrading to Tomcat 8. One of our clients uses…
Zack
  • 13
  • 5
0
votes
0 answers

Error with javax.websocket library

I am simply following the example here: javax.websocket client simple example My maven repository looks like: javax javaee-api
Flair
  • 2,609
  • 1
  • 29
  • 41