Class SocketIoManager

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class SocketIoManager
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • SocketIoManager

        public SocketIoManager​(java.net.URI engineUrl)
                        throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
    • Method Detail

      • disconnectSocket

        public void disconnectSocket​(Identity identity)
      • createSocketIoSubscription

        public Subscription createSocketIoSubscription​(Identity identity,
                                                       java.lang.String eventName,
                                                       io.socket.emitter.Emitter.Listener callback,
                                                       boolean subscribeOnce)
                                                throws UnauthorizedError,
                                                       java.net.URISyntaxException
        Throws:
        UnauthorizedError
        java.net.URISyntaxException
      • removeSocketIoSubscription

        public void removeSocketIoSubscription​(Identity identity,
                                               Subscription subscription)
      • getSocketForIdentity

        public io.socket.client.Socket getSocketForIdentity​(@NonNull
                                                            @NonNull Identity identity)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable