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
2
votes
1 answer

tyrus websocket server programmatic endpoint

I am trying to create a websocket server using programmatic endpoints with tyrus 1.8.2. I have found that the constructor: public Server(String hostName, int port, String contextPath, Map properties, Class...…
Charlie Davis
  • 51
  • 1
  • 6
2
votes
1 answer

SSL hostname verification in tyrus standalone client

I'm using tyrus 1.7 standalone client to connect to a remote websocket. This is done like in the sample: https://tyrus.java.net/documentation/1.7/user-guide.html#websocket-client-endpoint In the default implementation only checks if the SSL…
bko
  • 31
  • 4
2
votes
1 answer

Tyrus websocket server handshake issue?

I followed the User Guide available here : i added this in my pom : org.glassfish.tyrus tyrus-server 1.2
bloofi
  • 23
  • 4
1
vote
0 answers

Java Websocket: jakrata.websocket interceptor

I want to enrich (or use other way) the ClientEndpointConfig.Configurator of jakarta.websocket. I'm using tyrus as the implementation and I have something like: public class WebsocketClientEndpointConfigurator extends…
Shay Zambrovski
  • 401
  • 5
  • 21
1
vote
0 answers

WebSocket in Java throws javax.websocket.DeploymentException

So I'm trying to create a WebSocket client in Java. I used the code from the first answer javax.websocket client simple example I imported the tyrus-standalone-client 1.9 and org.java-websocket Java-Websocket 1.3.0 with Maven. When I try to run this…
OldLazarus
  • 71
  • 1
  • 6
1
vote
0 answers

Websocket over wss in context of Spring + Angular + Tyrus

Following situation: I have Spring-Boot-backend which communicates with an angular frontend. They are both packaged together into an executable war. Until recently it used http and ws. Now I want to migrate to using https and wss. The transition to…
Wolfone
  • 1,276
  • 3
  • 11
  • 31
1
vote
0 answers

Websocket Client Endpoint with SSL

I have written a annotated sample client endpoint as below, public WebsocketSSLClientEndpoint(URI endpointURI) throws URISyntaxException { final ClientManager client = ClientManager.createClient(); try { …
SHG
  • 59
  • 7
1
vote
0 answers

Java: Looking for a web socket client to go through Proxy, which is NTLM (Negotiate) enabled

I have been looking for a web socket client implementation for few days to pass through Proxy, which is setup with NTLM Negotiate protocol. I verified below implementations with NO success: 1. Glassfish's Tyrus client: Tried both client managers…
Babu
  • 11
  • 2
1
vote
1 answer

Java Websocket client using Tyrus javax.websocket?

I need to connect to already made WebSocket server (ws://173.230.152.100:2828/) using Java and exchange data. It must be possible to use multiple websockets at the same time, so it shouldn't be static class. I found some examples, but I always get…
1
vote
1 answer

Tyrus websocket: IllegalStateException cannot set WriteListener for non-async request

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. We are running on Payara 4.1. My standard…
Al-un
  • 3,102
  • 2
  • 21
  • 40
1
vote
1 answer

Spring Websocket Server Resets Connection When Sending Large Amounts of Data

I'm having issues where while trying to send data from a Spring Websocket Server (hosted on Tomcat) it seems to reset the connection in the middle of trying to send the message. The error seems happen more when sending large amounts of binary data…
cstack
  • 395
  • 1
  • 15
1
vote
1 answer

tyrus websocket ssl handshake has failed

I did everything I can do using tyrus websocket to connect to server. I hope that someone knows causes and tell me about the solution or comments. I use "tyrus-client websocket" org.glassfish.tyrus.bundles
Jason
  • 371
  • 5
  • 9
  • 17
1
vote
1 answer

Tyrus - Store messages received by client

I want to have a client which will receive WS messages and store them for further analysis. I created a Client based on https://dzone.com/articles/sample-java-web-socket-client Unfortunately on each onMessage method call the field which will store…
Kuba
  • 372
  • 4
  • 8
1
vote
2 answers

Websocket Client in OSGI

I have currently implemented websocket client using tyrus client and the websockets client works correctly outside OSGI environment. The problem is that the websocket doesn't run on apache karaf. I have installed all the dependencies for websocket…
Shridhar
  • 11
  • 5
1
vote
0 answers

Client/ server java websocket using tyrus

I have been pouring over all of the questions asked here about using websockets in java, but none seem to shed any light on my problem. I have a server deployed to glassfish 4.0 with the context root removed, or basically set to "". This was done by…
SteveManC
  • 132
  • 4
  • 12