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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. 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]
  5. val allWebSocketChannels: DefaultChannelGroup

    Collection of channels that are currently being used

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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

  9. 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

  10. def closeAll(): ChannelGroupFuture

    Disconnects all web sockets

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  16. 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.

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val name: String

    Name to call this web socket connection.

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

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

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

    Broadcasts a web socket text message to all web socket

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

    Sends a web socket text message to the specified web sockets

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

    Sends a web socket text message to the specified web socket

  30. def writeText(text: String): Unit

    Broadcasts a web socket text message to all web socket

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

    Sends a web socket text message to the specified web sockets

  32. 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