Packages

c

io.scalajs.npm.socketio.Socket

SocketEnrichment

implicit final class SocketEnrichment extends AnyVal

Client socket enrichment

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SocketEnrichment
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SocketEnrichment(socket: Socket)

    socket

    the given socket

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def onConnect(handler: () ⇒ Any): socket.type
    Annotations
    @inline()
  8. def onDisconnect(handler: () ⇒ Any): socket.type

    Fired upon disconnection.

    Fired upon disconnection.

    handler

    a function containing the reason of the disconnection (either client or server-side)

    Annotations
    @inline()
  9. def onDisconnecting(handler: () ⇒ Any): socket.type

    Fired when the client is going to be disconnected (but hasn't left its rooms yet).

    Fired when the client is going to be disconnected (but hasn't left its rooms yet).

    handler

    a function containing the reason of the disconnection (either client or server-side)

    Annotations
    @inline()
  10. def onError(handler: (Any) ⇒ Any): socket.type

    Fired when an error occurs.

    Fired when an error occurs.

    handler

    a function containing error data

  11. def onEvent(handler: (Any) ⇒ Any): socket.type
    Annotations
    @inline()
  12. val socket: Socket
  13. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped