Skip to content

Conversation

@kgibm
Copy link
Contributor

@kgibm kgibm commented Nov 4, 2019

Just tidying up to use what seems to be the more standard way of accessing the session by taking it as a parameter instead of storing it as an instance variable:

"and an optional Session parameter"
https://docs.oracle.com/javaee/7/api/javax/websocket/OnMessage.html

"optional Session parameter"
https://docs.oracle.com/javaee/7/api/javax/websocket/OnError.html

It's not immediately clear that it's safe to store per-session data as instance variables in the ServerEndpoint: https://docs.oracle.com/javaee/7/api/javax/websocket/server/ServerEndpoint.html

Tested this change and it works.

@jdmcclur jdmcclur merged commit 6acdb49 into WASdev:master Nov 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants