Class Manager

java.lang.Object
io.socket.emitter.Emitter
io.socket.client.Manager

public class Manager extends io.socket.emitter.Emitter
Manager class represents a connection to a given Socket.IO server.
  • Field Details

  • Constructor Details

  • Method Details

    • reconnection

      public boolean reconnection()
    • reconnection

      public Manager reconnection(boolean v)
    • isReconnecting

      public boolean isReconnecting()
    • reconnectionAttempts

      public int reconnectionAttempts()
    • reconnectionAttempts

      public Manager reconnectionAttempts(int v)
    • reconnectionDelay

      public final long reconnectionDelay()
    • reconnectionDelay

      public Manager reconnectionDelay(long v)
    • randomizationFactor

      public final double randomizationFactor()
    • randomizationFactor

      public Manager randomizationFactor(double v)
    • reconnectionDelayMax

      public final long reconnectionDelayMax()
    • reconnectionDelayMax

      public Manager reconnectionDelayMax(long v)
    • timeout

      public long timeout()
    • timeout

      public Manager timeout(long v)
    • open

      public Manager open()
    • open

      public Manager open(Manager.OpenCallback fn)
      Connects the client.
      Parameters:
      fn - callback.
      Returns:
      a reference to this object.
    • socket

      public Socket socket(String nsp, Manager.Options opts)
      Initializes Socket instances for each namespaces.
      Parameters:
      nsp - namespace.
      opts - options.
      Returns:
      a socket instance for the namespace.
    • socket

      public Socket socket(String nsp)