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

How does javax.websocket.Session.isOpen() method work?

Let's suppose we have open websocket between client and javaee server. There is a method session.isOpen() which can be used to check if session is still open. But what will return this method and why if client computer suddenly will be switched off…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
0
votes
1 answer

Abnormal CPU usage with WS server

I made a websocket server using Tyrus implementation and it takes 50 % of the cpu usage but I don't know why. At first I thought it was the processes besides but after that, I wrote an extremely simple ws server after that and it is still the…
Phoste
  • 1,141
  • 4
  • 18
  • 34
0
votes
0 answers

Handshake error sporadically occuring -using tyrus client android

The following issue occurs sporadically.. I have seen some posts like Websocket SSL handshake failure Please dont mark this question as duplicate unless there is concrete answer.I couldnt get a work around what exactly needs to be done for tyrus…
svs teja
  • 957
  • 2
  • 22
  • 43
0
votes
1 answer

Tyrus: silent server start failure

We are currently trying to implement WebSocket server using Tyrus and everything went alright (server-client communication worked well) until we tried to test what happens if server initialization fails (e.g. bad port). The underlying code throws…
Jan Legner
  • 644
  • 6
  • 13
0
votes
1 answer

Websockets. Tyrus. Time for which the client is connected to a socket

How can I get time for which the client is connected to a socket?
Alexiuscrow
  • 776
  • 2
  • 15
  • 34
0
votes
0 answers

Server Independent WebSocket Implementation

I am trying to find a solution for a Server Independent WebSocket implementation, Tomcat inbuilt WebSocket API is good but it's not running in Weblogic and other servers . I found a solution with Tyrus API , but all examples of Tyrus is done with…
Chanky Mallick
  • 569
  • 8
  • 27
0
votes
0 answers

Spring boot 1.3.1 with Tyrus websocket causes Authentication Exception

We recently migrated to Spring boot 1.3.1 from the traditional spring project. Our existing clients use Tyrus 1.12 as a websocket client. After the upgrade, we found that the clients no longer connect and throws AuthenticationException. Strangely,…
myspri
  • 283
  • 7
  • 14
0
votes
1 answer

How to get the local ip address from a Tyrus websocket client

I'm writing a Java websocket client that needs to be aware of its own IP address, meaning the IP address of the interface used to connect to the server endpoint. Since clients might change addresses, whenever they (re)connect to the server the local…
Malt
  • 28,965
  • 9
  • 65
  • 105
0
votes
1 answer

Tyrus WebSocket Server Standalone with CDI

Is it possible to use dependency inject with the Tyrus Standalone Server?
blf
  • 85
  • 8
0
votes
2 answers

getting "Handshake response not received." after closing websocket

I'm using tyrus websocket client (1.11) to connect to a websocket. compile 'org.glassfish.tyrus:tyrus-client:1.+' compile 'org.glassfish.tyrus:tyrus-container-grizzly-client:1.+' I'm running a local wscat server (wscat --listen) to test my…
copolii
  • 14,208
  • 10
  • 51
  • 80
0
votes
0 answers

How can I prevent Tyrus websocket client reconnect logic from resulting in multiple open sockets?

I've seen this behavior occur occasionally and I can't reproduce it consistently. But it appears that the reconnect logic in Tyrus (v1.10) can result in multiple open sockets/threads for the same client. The process that results in multiple sockets…
preston.m.price
  • 646
  • 1
  • 10
  • 17
0
votes
1 answer

My Websocket takes forever to connect

UPDATE It seems that in org.glassfish.tyrus.core.BaseContainer in the constructor, these two lines run super slow: this.managedExecutorService = lookupManagedExecutorService(); this.managedScheduledExecutorService =…
smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113
0
votes
1 answer

Arduino websocket client and Tyrus websocket server message communication issue?

I'm using the following Arduino function to send data across websocket communication: void WebSocketClient::sendEncodedData(String& str, uint8_t opcode) { uint8_t mask[4]; int size = str.length()+1; // Opcode; final…
AWT
  • 381
  • 3
  • 18
0
votes
0 answers

Error with Android Studio while using Tyrus websockets

Im making an android application with websockets using the latest Tyrus build using android studio. I have included the library through gradle like so on build.gradle dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile…
0
votes
1 answer

Is Tyrus nessary to implement Java WebSocket authentication?

Although there's very similar post, it is unanswered. My JavaFX app with WebSocket will send user id、password to server keep the session to let user do something like personal data management. Learning from Oracle WebSocket、 Tyrus 8.14 Client…
chiahao
  • 296
  • 4
  • 16