Class/Object

io.scalajs.npm.socketio

Namespace

Related Docs: object Namespace | package socketio

Permalink

class Namespace extends Object with IEventEmitter

Represents a pool of sockets connected under a given scope identified by a pathname (eg: /chat). By default the client always connects to /.

Annotations
@RawJSType() @native()
Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Namespace
  2. IEventEmitter
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Namespace(socket: Socket)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addListener(eventName: String, listener: Function): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clients(callback: Function2[SocketIOError, Array[Socket], Any]): Unit

    Permalink

    Gets a list of client IDs connected to this namespace (across all nodes if applicable).

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def connected: Dictionary[Socket]

    Permalink

    Hash of Socket objects that are connected to this namespace indexed by id.

  9. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  10. def emit(name: String, args: Any*): Any

    Permalink
    Definition Classes
    IEventEmitter
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getMaxListeners(): Int

    Permalink
    Definition Classes
    IEventEmitter
  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  20. def listenerCount(eventName: String): Int

    Permalink
    Definition Classes
    IEventEmitter
  21. def listeners(eventName: String): Array[Function]

    Permalink
    Definition Classes
    IEventEmitter
  22. def name: String

    Permalink

    The namespace identifier property.

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def on(eventName: String, listener: Function): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  27. def once(eventName: String, listener: Function): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  28. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  29. def removeAllListeners(): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  30. def removeAllListeners(eventName: String): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  31. def removeListener(eventName: String, listener: Function): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  32. def setMaxListeners(n: Int): Namespace.this.type

    Permalink
    Definition Classes
    IEventEmitter
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def use(fn: Function): Namespace.this.type

    Permalink

    Registers a middleware, which is a function that gets executed for every incoming Socket, and receives as parameters the socket and a function to optionally defer execution to the next registered middleware.

    Registers a middleware, which is a function that gets executed for every incoming Socket, and receives as parameters the socket and a function to optionally defer execution to the next registered middleware.

    fn

    the function that gets executed for every incoming Socket

  37. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  38. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped