Trait/Object

org.scalatra.atmosphere

AtmosphereClient

Related Docs: object AtmosphereClient | package atmosphere

Permalink

trait AtmosphereClient extends AtmosphereClientFilters

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
AtmosphereClientFilters, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AtmosphereClient
  2. AtmosphereClientFilters
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def receive: AtmoReceive

    Permalink

    Receive an inbound message.

Concrete Value Members

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def ><(msg: OutboundMessage, to: ClientFilter = Others)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    Permalink

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

    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.

  6. final def Everyone: ClientFilter

    Permalink
    Attributes
    protected
    Definition Classes
    AtmosphereClientFilters
  7. final def Me: ClientFilter

    Permalink
    Attributes
    protected
    Definition Classes
    AtmosphereClientFilters
  8. final def OnlySelf: ClientFilter

    Permalink

    Deliver the message only to the current user.

    Deliver the message only to the current user.

    Attributes
    protected
    Definition Classes
    AtmosphereClientFilters
  9. final def Others: ClientFilter

    Permalink
    Attributes
    protected
    Definition Classes
    AtmosphereClientFilters
  10. final def SkipSelf: ClientFilter

    Permalink

    Deliver the message to everyone except the current user.

    Deliver the message to everyone except the current user.

    Attributes
    protected
    Definition Classes
    AtmosphereClientFilters
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. final def broadcast(msg: OutboundMessage, to: ClientFilter = Others)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    Permalink

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

    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.

  13. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def receiveWithScalatraContext(scalatraContext: ScalatraContext): AtmoReceive

    Permalink
  24. implicit def request: HttpServletRequest

    Permalink
  25. def requestUri: String

    Permalink
    Attributes
    protected
  26. implicit def response: HttpServletResponse

    Permalink
  27. final def send(msg: OutboundMessage)(implicit executionContext: ExecutionContext): Future[OutboundMessage]

    Permalink

    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)

  28. def servletContext: ServletContext

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def uuid: String

    Permalink

    A unique identifier for a given connection.

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

    Definition Classes
    AtmosphereClientAtmosphereClientFilters
  32. final def wait(): Unit

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

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

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

Inherited from AtmosphereClientFilters

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped