unfiltered.netty

websockets

package websockets

Module defining function types used in the WebSockets module as well as function defaults

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

Type Members

  1. case class Binary(buf: ByteBuf) extends Msg with Product with Serializable

  2. case class Close(socket: WebSocket) extends SocketCallback with Product with Serializable

  3. trait CloseOnException extends AnyRef

    Serves the same purpose of unfiltered.

  4. case class Continuation(socket: WebSocket, fragment: Fragment) extends SocketCallback with Product with Serializable

  5. case class Error(socket: WebSocket, err: Throwable) extends SocketCallback with Product with Serializable

  6. case class Fragment(buf: ByteBuf, last: Boolean) extends Msg with Product with Serializable

  7. type Intent = PartialFunction[RequestBinding, SocketIntent]

    The transition from an http request handling to websocket request handling.

    The transition from an http request handling to websocket request handling. Note: This can not be an Async.Intent because RequestBinding is a Responder for HttpResponses

  8. case class Message(socket: WebSocket, msg: Msg) extends SocketCallback with Product with Serializable

  9. sealed trait Msg extends AnyRef

  10. case class Open(socket: WebSocket) extends SocketCallback with Product with Serializable

  11. type PassHandler = (ChannelHandlerContext, AnyRef) ⇒ Unit

    A pass handler type represents a means to forward a request upstream for unhandled patterns and protocol messages

  12. trait Plan extends ChannelInboundHandlerAdapter with ExceptionHandler

    Provides an extension point for netty ChannelHandlers that wish to support the WebSocket protocol

  13. trait SocketCallback extends AnyRef

  14. type SocketIntent = PartialFunction[SocketCallback, Unit]

    A SocketIntent is the result of a handler lifting a request into the WebSocket protocol.

    A SocketIntent is the result of a handler lifting a request into the WebSocket protocol. WebSockets may be responded to asynchronously, thus their handler will not need to return a value

  15. case class SocketPlan(intent: SocketIntent, pass: (ChannelHandlerContext, AnyRef) ⇒ Unit, shaker: WebSocketServerHandshaker, exceptions: ExceptionHandler) extends ChannelInboundHandlerAdapter with Product with Serializable

    The result of defined Intent should result in a SocketPlan value.

  16. case class Text(txt: String) extends Msg with Product with Serializable

  17. case class WebSocket(channel: Channel) extends Product with Serializable

Value Members

  1. val DefaultPassHandler: (ChannelHandlerContext, AnyRef) ⇒ Unit

    A default implementation of a Plan.

    A default implementation of a Plan.PassHandler which returns a HTTP protocol forbidden response code to the channel before closing the channel

  2. val Pass: SocketIntent

    Equivalent of an HttpResponse's Pass function, a SocketIntent that does nothing

  3. val PassAlong: Intent

  4. object Planify

    A companion module for building web socket Plans.

Inherited from AnyRef

Inherited from Any

Ungrouped