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
0 answers

Error on Java web socket implementation

I'm connecting to a web socket server via my Java application using Grizzly web socket implementation. @OnError public void error(Session session, Throwable t) { Log4Me.getLogger().debug("WebSocket Error {} on session {} ", session, t); …
xyzt
  • 1,201
  • 4
  • 18
  • 44
0
votes
0 answers

Tyrus server endpoint @OnMessage method not triggered

I am attempting to run a simple websocket example using Tyrus 1.8.3 and the javax.websocket API, following https://blog.openshift.com/how-to-build-java-websocket-applications-using-the-jsr-356-api/ as a guide. Using annotations, I have created a…
Stephen Hartley
  • 945
  • 1
  • 11
  • 17
0
votes
1 answer

SSL handshake error when connecting by websocket using encrypted connection

I use Tyrus webSocket implementation to connect to the server from my JavaFX application. When I try to establish connection over SSL I get this error: javax.net.ssl.SSLException: SSL handshake error has occurred - more data needed for validating…
Dmitry
  • 1,484
  • 2
  • 15
  • 23
0
votes
1 answer

DeploymentException with WebSockets, TyrusServer

set 26, 2014 5:13:00 PM org.glassfish.tyrus.core.AnnotatedEndpoint callMethod INFO: Exception thrown from onError method public void main.scala.SocksEndpoint2.onError(javax.websocket.Session,java.lang.Throwable). javax.websocket.DeploymentException:…
LowFieldTheory
  • 1,722
  • 1
  • 26
  • 39
0
votes
1 answer

Setting websocket SSL on grizzly

I'm trying to configure a WebSocket over SSL with the "javax.websocket.server.ServerEndpoint" on a grizzly container. However i can't find any way to set the SSL property to my endpoint. My endpoint code : import javax.websocket.OnMessage; import…
Manticore
  • 441
  • 5
  • 24
0
votes
1 answer

Sending multiple messages to a server using Java Websockets Client side?

@OnOpen public void onOpen(Session session) { session.getBasicRemote.sendText("Echo me"); session.addMessageHandler(new MessageHandler.Whole() { public void onMessage(String arg0) { System.out.println(arg0); …
Adz
  • 2,809
  • 10
  • 43
  • 61
0
votes
0 answers

Glassfish Tyrus ServerEndpoint instantiation failure - how can I diagnose the error?

I have a ServerEndpoint class that throws this error as soon as I attempt to connect to it from the client. I presume that some sort of dependency is missing, i.e a bundled library that is missing another jar, although it may be some other…
Atorian
  • 777
  • 10
  • 26
0
votes
1 answer

Session Identification in Tyrus WebSocket API

I have implemented a websocket server which acts as observer for some events. @ServerEndPoint public class Server implements SomeObserver I have implemented objectChanged() from SomeObserver class. The objectChanged() will execute when there is…
Ashish Nijai
  • 321
  • 2
  • 13
0
votes
2 answers

Websocket blocks when downloading file via http to the same host

I have a server running Java Play Framework 2.2.1 and a client application that connects via websockets to the server for monitoring and download files via http. I have the issue when downloading large files that the websockets messages block until…
ag.albachicar
  • 347
  • 1
  • 3
  • 17
0
votes
0 answers

Can we add observer to @Endpoint in Java Tyrus websocket API

I want to add observer to @Endpoint so that other classes can be notified for events like @OnMessage. Can we do that for @Endpoint?
Ashish Nijai
  • 321
  • 2
  • 13
0
votes
0 answers

Weird behaviour of tyrus Websocket API

I am developing a websocket server and client which will handle multiple messages. I am using JSON with decoders and encoders. As we can have only one @OnMessage method per endpoint, I created one Marker interface called message. Now my @OnMessage…
Ashish Nijai
  • 321
  • 2
  • 13
0
votes
1 answer

How to interrupt Glassfish Websocket new live thread?

I setup Glassfish 4 websever using websocket. When I connect to Glassfish through webscoket, I use VisualVM monitor it and see the live threads are increased when Glassfish get new connection. This number is also bigger, sometimes it decrease small…
misamap
  • 63
  • 7
0
votes
1 answer

grails 2.3. 0 and project tyrus

Grails 2.3.0 and push notification via [Project Tyrus][1]? Can grails 2.3.0 play well with Tyrus 1.3? I have found :http://www.objectpartners.com/2013/06/25/getting-groovy-with-spring-and-websockets/ But this is based on Tyrus 1.0 and this creates…
-1
votes
1 answer

tyrus standalone client how can I bind to one specific nic card on my host

Only one of the host's interfaces has a network route specified and without specifying a bind address my connection success with the server has been random. How can I configure the Tyrus Standalone client with the interface to bind to?
garneke
  • 35
  • 6
-1
votes
1 answer

Confused about websockets and java

I have been looking at tutorials like this, java websockets using Tyrus and I see a server implementation, a java client, and a javascript client. I was expecting only a server implementation and a javascript client to handle messages from the…
smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113
1 2 3 4 5 6 7
8