uklance / tapestry-cometd

A push library for Tapestry5 based on CometD
17 stars 3 forks source link

Store client context as a channel attribute #32

Closed uklance closed 12 years ago

uklance commented 12 years ago

Remove the client context map from CometdGlobals and store it on the ConfigurableServerChannel instead.

This can be achieved with a ConfigurableServerChannel.Initializer. Unfortunately (again) the data is not passed to the Initializer so the authorizer will need to push the context onto the environment.

This will really simplify things I think and make synchronization less of a hassle.