Class SocketIoHandler


  • @Service
    public class SocketIoHandler
    extends Object
    Sets up and configures socket.io to handle messages from the client side.
    • Constructor Detail

      • SocketIoHandler

        public SocketIoHandler​(io.socket.socketio.server.SocketIoServer socketIoServer,
                               com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                               PushMessageHandler pushMessageHandler)
        Creates the handler.
        Parameters:
        socketIoServer - the socket io server
        objectMapper - the object mapper to use for JSON serialization
        pushMessageHandler - the handler for incoming messages