org.scalatra.atmosphere

AtmosphereClient

trait AtmosphereClient extends AnyRef

Provides a handle for a single Atmosphere connection.

Each browser or other device which connects to an atmosphere route is assigned its own AtmosphereClient, with a uuid. This is a good bet for subclassing if you need to implement your own message distribution logic. Subclasses may define their own ClientFilter logic in addition to the stock ClientFilters already defined, in order to segment message delivery.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AtmosphereClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def receive: AtmoReceive

    Receive an inbound message.

Concrete Value Members

  1. final def !(msg: OutboundMessage)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    A convenience method which sends a message only to the current client, using a broadcast filter.

  2. final def !=(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  4. final def ##(): Int

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

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def ><(msg: OutboundMessage, to: (AtmosphereClient) ⇒ Boolean = Others)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    Broadcast a message to all clients, skipping the current client by default (i.

    Broadcast a message to all clients, skipping the current client by default (i.e. normal chat server behaviour). Optionally filter the clients to deliver the message to by applying a filter.

  8. final val Everyone: (AtmosphereClient) ⇒ Boolean

    Deliver the message to all connected users.

    Deliver the message to all connected users.

    Attributes
    protected
  9. final def Me: (AtmosphereClient) ⇒ Boolean

    Attributes
    protected
  10. final def OnlySelf: (AtmosphereClient) ⇒ Boolean

    Deliver the message only to the current user.

    Deliver the message only to the current user.

    Attributes
    protected
  11. final def Others: (AtmosphereClient) ⇒ Boolean

    Attributes
    protected
  12. final def SkipSelf: (AtmosphereClient) ⇒ Boolean

    Deliver the message to everyone except the current user.

    Deliver the message to everyone except the current user.

    Attributes
    protected
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. final def broadcast(msg: OutboundMessage, to: (AtmosphereClient) ⇒ Boolean = Others)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    Broadcast a message to all clients, skipping the current client by default (i.

    Broadcast a message to all clients, skipping the current client by default (i.e. normal chat server behaviour). Optionally filter the clients to deliver the message to by applying a filter.

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

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

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def requestUri: String

    Attributes
    protected
  26. final def send(msg: OutboundMessage)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    A convenience method which sends a message only to the current client, using a broadcast filter.

    A convenience method which sends a message only to the current client, using a broadcast filter. This is the same as calling broadcast(message, to = Me)

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

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def uuid: String

    A unique identifier for a given connection.

    A unique identifier for a given connection. Can be used for filtering purposes.

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped