Trait

io.backchat.hookup.HookupServer

HookupServerClient

Related Doc: package HookupServer

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def receive: Receive

    Permalink

    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

    Permalink

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

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

    Permalink

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

  6. val SkipSelf: BroadcastFilter

    Permalink

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

  7. final def asInstanceOf[T0]: T0

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

    Permalink

    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

  9. def clone(): AnyRef

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

    Permalink

    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
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected
  14. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def id: Int

    Permalink

    returns

    The connection id

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def remoteAddress: SocketAddress

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

    Permalink
  24. final def send(message: OutboundMessage): Future[OperationResult]

    Permalink

    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
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from BroadcastChannel

Inherited from BroadcastChannelLike

Inherited from AnyRef

Inherited from Any

Ungrouped