Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on front page does not work. #40

Open
bb-work opened this issue Jul 12, 2016 · 3 comments
Open

Example on front page does not work. #40

bb-work opened this issue Jul 12, 2016 · 3 comments

Comments

@bb-work
Copy link

bb-work commented Jul 12, 2016

Play Framework 2.5.4, atmosphere-play 2.3.0

Used the chat code from the front page of this project, get handshake errors when trying to connect websocket.
WebSocket connection to 'ws://localhost:9000/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.3.2-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&Content-Type=application/json&X-atmo-protocol=true' failed: Error during WebSocket handshake: Unexpected response code: 404

@bb-work
Copy link
Author

bb-work commented Jul 13, 2016

Can someone please explain what the replacement is for the missing Router.dispatch() method????

@Flo354
Copy link

Flo354 commented Jul 18, 2016

I have the same problem!
Edit : solved with issue #39

@DeveloperInResidence
Copy link

Issue #39 did not solve the problem for me and the example on git seems to be broken as well.
It uses Router.request, which cannot be found in the current version and there is no explanation of what to do differently. I've tried using the following line in application.conf, as suggested in issue #39:
play.https.requestHandler = "org.atmosphere.play.AtmosphereHttpRequestHandler"
It does not work and it seems the onRouteRequest cannot easily be replaced in Java:

GlobalSettings.onRouteRequest: There is no simple migration for this method when using the Java API. If you need this, you will have to keep your Global class around for a little longer.

(from the Play documentation: https://www.playframework.com/documentation/2.5.x/GlobalSettings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants