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. HookupServerClient
  2. BroadcastChannel
  3. BroadcastChannelLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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

Concrete Value Members

  1. final def !(msg: OutboundMessage): Unit

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

  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, onlyTo: BroadcastFilter = SkipSelf): Future[OperationResult]

    Alias for 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. final 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 io.backchat.hookup.OutboundMessage to broadcast

    onlyTo

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

    returns

    A scala.concurrent.Future with the io.backchat.hookup.OperationResult

  11. def clone(): AnyRef

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

    Disconnect from the socket, perform closing handshake if necessary

    Disconnect from the socket, perform closing handshake if necessary

    returns

    An scala.concurrent.Future of io.backchat.hookup.OperationResult

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

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

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

    Attributes
    protected
  16. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  19. final def id: Int

    returns

    The connection id

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

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

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

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

    Definition Classes
    AnyRef
  24. final def remoteAddress: SocketAddress

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

  26. final 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 scala.concurrent.Future of io.backchat.hookup.OperationResult

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BroadcastChannel

Inherited from BroadcastChannelLike

Inherited from AnyRef

Inherited from Any

Ungrouped