org.mashupbots.socko.webserver

WebSocketConnections

class WebSocketConnections extends AnyRef

Manages all web socket connections

Acts as a wrapper for Netty's channel group. A TODO is to optimize performance by using a hash lookup.

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

Instance Constructors

  1. new WebSocketConnections(name: String)

    name

    Name to call this web socket connection. Netty channel group will use this name.

Type Members

  1. case class WebSocketIdChannelMatcher(webSocketIds: Iterable[String]) extends ChannelMatcher with Product with Serializable

    Matcher for web socket id to use with channel groups

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def add(channel: Channel): Boolean

    Adds the specified Netty channel for management.

    Adds the specified Netty channel for management. For internal package use only.

    channel

    Netty channel to add

    Attributes
    protected[org.mashupbots.socko.webserver]
  7. val allWebSocketChannels: DefaultChannelGroup

    Collection of channels that are currently being used

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(webSocketIds: Iterable[String]): ChannelGroupFuture

    Disconnects the specified web sockets and removes it from the group

    Disconnects the specified web sockets and removes it from the group

    webSocketIds

    IDs of web sockets to remove

  11. def close(webSocketId: String): ChannelGroupFuture

    Disconnects the specified web socket and removes it from the group

    Disconnects the specified web socket and removes it from the group

    webSocketId

    ID of web socket to remove

  12. def closeAll(): ChannelGroupFuture

    Disconnects all web sockets

  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def isConnected(webSocketId: String): Boolean

    Checks if the specified web socket id is connected or not

    Checks if the specified web socket id is connected or not

    webSocketId

    Id of web socket to check if it is still connected

    returns

    True if connected, False if the channel has been closed.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val name: String

    Name to call this web socket connection.

    Name to call this web socket connection. Netty channel group will use this name.

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def writeBinary(bytes: Array[Byte]): Unit

    Broadcasts a web socket text message to all web socket

  30. def writeBinary(bytes: Array[Byte], webSocketIds: Iterable[String]): Unit

    Sends a web socket text message to the specified web sockets

  31. def writeBinary(bytes: Array[Byte], webSocketId: String): Unit

    Sends a web socket text message to the specified web socket

  32. def writeText(text: String): Unit

    Broadcasts a web socket text message to all web socket

  33. def writeText(text: String, webSocketIds: Iterable[String]): Unit

    Sends a web socket text message to the specified web sockets

  34. def writeText(text: String, webSocketId: String): Unit

    Sends a web socket text message to the specified web socket

Inherited from AnyRef

Inherited from Any

Ungrouped