jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Introduce application properties to define Push transport and mode

Open glebfox opened this issue 1 year ago • 1 comments

In CUBA we have cuba.web.pushLongPolling that enables switching to long polling instead of WebSocket for server push implementation.

Currently, there is no alternative for Jmix and it's hard to change Push transport

glebfox avatar Mar 15 '24 07:03 glebfox

To change Push transport the custom AppUI class must be created. To do this:

  1. Create a custom AppUI class
@Push(transport = Transport.LONG_POLLING)
public class CustomAppUI extends AppUI {
}
  1. Register this bean
@Bean
public AppUI customAppUI() {
    return new CustomAppUI();
}
  1. Exclude built-in AppUI class in application.properties:
jmix.core.exclude-beans = appUI

glebfox avatar Mar 22 '24 07:03 glebfox