You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented a wsBeforeUpgrade handler. When the handler is executed and I try to access the routeRoles, I always get an empty list even though I have specified roles.
Expected behavior
When the handler is called, one should be able to access the routeRoles that have been defined instead of getting an empty list.
To Reproduce
config.router.apiBuilder(() -> {
ws("/ws/client", wsConfig -> {
wsConfig.onConnect(this::onConnect);
wsConfig.onMessage(this::onMessage);
wsConfig.onError(this::onError);
wsConfig.onClose(this::onClose);
}, AUTHENTICATED); //<- routeRole is defined
});
Actual behavior (the bug)
I have implemented a wsBeforeUpgrade handler. When the handler is executed and I try to access the routeRoles, I always get an empty list even though I have specified roles.
Expected behavior
When the handler is called, one should be able to access the routeRoles that have been defined instead of getting an empty list.
To Reproduce
The text was updated successfully, but these errors were encountered: