org.springframework.web.socket.sockjs.transport.handler

Class DefaultSockJsService

    • Constructor Detail

      • DefaultSockJsService

        public DefaultSockJsService(TaskScheduler scheduler)
        Create a DefaultSockJsService with default handler types.
        Parameters:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it is initialized at start up and shut down when the application stops.
      • DefaultSockJsService

        public DefaultSockJsService(TaskScheduler scheduler,
                                    TransportHandler... handlerOverrides)
        Create a DefaultSockJsService with overridden handler types replacing the corresponding default handler implementation.
        Parameters:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it gets initialized at start-up and shuts down when the application stops
        handlerOverrides - zero or more overrides to the default transport handler types
      • DefaultSockJsService

        public DefaultSockJsService(TaskScheduler scheduler,
                                    java.util.Collection<TransportHandler> handlerOverrides)
        Create a DefaultSockJsService with overridden handler types replacing the corresponding default handler implementation.
        Parameters:
        scheduler - a task scheduler for heart-beat messages and removing timed-out sessions; the provided TaskScheduler should be declared as a Spring bean to ensure it gets initialized at start-up and shuts down when the application stops
        handlerOverrides - zero or more overrides to the default transport handler types