Class/Object

io.scalajs.npm.socketio

Server

Related Docs: object Server | package socketio

Permalink

class Server extends Object with IEventEmitter

Socket.io Server

Annotations
@RawJSType() @native()
Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  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 Server()

    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 adapter(v: Adapter): Server

    Permalink

    Sets the adapter v.

    Sets the adapter v. Defaults to an instance of the Adapter that ships with socket.io which is memory based.

    v

    the given adapter

  5. def adapter(): Adapter

    Permalink

    Returns the current adapter

    Returns the current adapter

    returns

    the current adapter

  6. def addListener(eventName: String, listener: Function): Server.this.type

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

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def close(callback: Function1[SocketIOError, Any] = js.native): Unit

    Permalink

    Closes socket.io server.

    Closes socket.io server.

    The optional callback function is passed to the server.close([callback]) method of the core net module and is called on error or when all connections are closed. The callback is expected to implement the common single argument err signature (if any).

    callback

    the callback function

  10. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  11. def emit(name: String, args: Any*): Server.this.type

    Permalink

    Emits an event to all connected clients.

    Emits an event to all connected clients.

    name

    the event name

    args

    the event arguments

    Definition Classes
    Server → IEventEmitter
  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Object
  21. def listen(port: |[Int, String]): Server.this.type

    Permalink

  22. def listenerCount(eventName: String): Int

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

    Permalink
    Definition Classes
    IEventEmitter
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def of(namespace: String): Namespace

    Permalink

    Initializes and retrieves the given Namespace by its pathname identifier namespace.

    Initializes and retrieves the given Namespace by its pathname identifier namespace. If the namespace was already initialized it returns it immediately.

    namespace

    the given namespace

    returns

    the Namespace

  28. def on(eventName: String, listener: Function): Server.this.type

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

    Permalink
    Definition Classes
    IEventEmitter
  30. def origins(v: String): Server.this.type

    Permalink

  31. def path(pathString: String): Server.this.type

    Permalink

    Sets the path v under which engine.io and the static files will be served.

    Sets the path v under which engine.io and the static files will be served. Defaults to /socket.io.

    pathString

    the given path string

  32. def path(): String

    Permalink

    Returns the current path.

    Returns the current path.

    returns

    the current path.

  33. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  34. def removeAllListeners(): Server.this.type

    Permalink
    Definition Classes
    IEventEmitter
  35. def removeAllListeners(eventName: String): Server.this.type

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

    Permalink
    Definition Classes
    IEventEmitter
  37. def serveClient(v: Boolean): Server.this.type

    Permalink

    If v is true the attached server (see Server#attach) will serve the client files.

    If v is true the attached server (see Server#attach) will serve the client files. Defaults to true. This method has no effect after attach is called.

  38. def serveClient(): Boolean

    Permalink

  39. def setMaxListeners(n: Int): Server.this.type

    Permalink
    Definition Classes
    IEventEmitter
  40. def sockets: Namespace

    Permalink

    The default (/) namespace.

  41. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink

    Registers a middleware, which is a function that gets executed for every incoming Packet and receives as parameter the packet 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 Packet and receives as parameter the packet and a function to optionally defer execution to the next registered middleware.

    fn

    the function that gets executed for every incoming Packet

  45. var usingDomains: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. 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