You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (Jira)" <de...@myfaces.apache.org> on 2022/11/09 10:14:00 UTC
[jira] [Created] (MYFACES-4496) Server side Websocket/Push Implementation not working
Werner Punz created MYFACES-4496:
------------------------------------
Summary: Server side Websocket/Push Implementation not working
Key: MYFACES-4496
URL: https://issues.apache.org/jira/browse/MYFACES-4496
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 4.0.0-RC2
Reporter: Werner Punz
While fixing several reported bugs in the new faces.js code I ran against a non working push implementation on the 4.0.0-RC2 codebase.
Problem was a simple new WebSocket(<provided url by f:websockt>) could not establish a working connection.
The problem is definitely somewhere in the server, either not registering the Websocket endpoint or delivering the wrong connection token.
A example implemented via the Websocket servlet api and plain html works in the same configuration, se we can rule out the server environment (Embedded Tomcat 10). You can use straight the code from master to replicate this problem (I have decorated the faces.js api accordingly just to try a connection on the jsf side instead of going into the code)
An example can be found at: [https://github.com/werpu/websocketproblem]
Run instructions are included in the integrated readme, it uses an embedded tomcat/openwebbeans/myfaces 4.0.0 stack so a simple
mvn clean clean install -DskipTests exec:java -Pstandalone -f pom.xml starts the server and installs all libraries, the rest is documented in the github repo readme.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)