io.backchat.hookup.HookupServer

HookupServerClient

trait HookupServerClient extends BroadcastChannel

The interface library users use when implementing a websocket server to represent a client. For every new connection made to the server it will create one of these guys.

You can use it to maintain state for your client, but be aware that multiple threads maybe accessing the state at the same time so you should take care of thread safety.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HookupServerClient
  2. BroadcastChannel
  3. BroadcastChannelLike
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def receive : Receive

    Abstract method to implement a handler for inbound messages

    Abstract method to implement a handler for inbound messages

    returns

    a io.backchat.hookup.HookupClient.Receive handler

    Attributes
    abstract

Concrete Value Members

  1. def ! (msg: OutboundMessage): Unit

    alias for io.backchat.hookup.HookupServer.HookupServerClient.send

    alias for io.backchat.hookup.HookupServer.HookupServerClient.send

    Attributes
    final
    See also

    io.backchat.hookup.HookupServer.HookupServerClient.send

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def >< (msg: OutboundMessage, onlyTo: BroadcastFilter = SkipSelf): Future[OperationResult]

    Alias for io.backchat.hookup.HookupServer.HookupServerClient.broadcast

    Alias for io.backchat.hookup.HookupServer.HookupServerClient.broadcast

    Attributes
    final
    See also

    io.backchat.hookup.HookupServer.HookupServerClient.broadcast

  8. val SkipSelf : BroadcastFilter

    The default broadcast filter broadcast operations use, it skips publishing to the sending channel

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def broadcast (msg: OutboundMessage, onlyTo: BroadcastFilter = SkipSelf): Future[OperationResult]

    Broadcast this message to all connections matching the filter

    Broadcast this message to all connections matching the filter

    msg

    The OutboundMessage to broadcast

    onlyTo

    The filter to determine the connections to send to. Defaults to all but self.

    returns

    A akka.dispatch.Future with the OperationResult

    Attributes
    final
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def disconnect (): Future[OperationResult]

    Disconnect from the socket, perform closing handshake if necessary

    Disconnect from the socket, perform closing handshake if necessary

    returns

    An akka.dispatch.Future of OperationResult

    Attributes
    final
    Definition Classes
    HookupServerClientBroadcastChannelLike
  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. implicit def executionContext : ExecutionContext

    Attributes
    protected implicit final
  16. def finalize (): Unit

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

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

    Definition Classes
    AnyRef → Any
  19. def id : Int

    returns

    The connection id

    Attributes
    final
    Definition Classes
    HookupServerClientBroadcastChannel
  20. def isInstanceOf [T0] : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def remoteAddress : SocketAddress

    Attributes
    final
  25. def send (message: OutboundMessage): Future[OperationResult]

    Send a text message to this client

    Send a text message to this client

    message

    the message to send

    returns

    An akka.dispatch.Future of OperationResult

    Attributes
    final
    Definition Classes
    HookupServerClientBroadcastChannelLike
  26. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  27. def toString (): String

    Definition Classes
    AnyRef → Any
  28. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from BroadcastChannel

Inherited from BroadcastChannelLike

Inherited from AnyRef

Inherited from Any