milansie commented on PR #705:
URL: https://github.com/apache/myfaces/pull/705#issuecomment-2074902294

   Yup, it seems so. If the channel is applicationScope, only one channelToken 
exists for the application. 
   If the channel scope is session (and user is specified), there is same 
channelToken with two websocket sessions connected.  
   
   you are right, only one ViewScope bean is closed. But session channelToken 
was also removed (not destroying the session, only removing the channelToken 
from sessionScope bean), and therefore registering new websocket session for 
this user session fails by websocket eror code 1011
   
   > how are the channelTokens generated? i wonder that if you open index.xhtml 
in two different tabs, does it use the same channelToken? this creates 2 slots 
in the "NUMBER_OF_VIEWS_IN_SESSION". If one is closed, only the viewscope bean 
of this one should and the channel of this should be closed. Not both.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@myfaces.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to