User-defined websocket handler.
User-defined websocket handler.
User-defined REST handler.
User-defined REST handler.
Defined as a Receive for performance (to allow sharing of
Route between sessions).
Wandoulabs' WebSocket implementation doesn't support ack/nack-ing on the CommandFrame level.
Wandoulabs' WebSocket implementation doesn't support ack/nack-ing on the CommandFrame level. But it is possible to drop down to TCP messages by duplicating their FrameRendering logic in the ServerWorker actor. Here we construct a payload that is ignored by the ConnectionManager which requests an Ack.
A similar pattern could be applied for non-Text Frames and NACK based writing, in order to skip the FrameRendering logic.
WARNING: callers should be aware of the implications of changing the state in this method. Multiple calls to this **must not** be made in the same receive block, or the earlier Acks will be missed.
For more information, see https://groups.google.com/d/msg/akka-user/ckUJ9wlltuc/h37ZRCkAA6cJ
Convenient, but not performance optimal, implementation of
WebSocketComboWorkerthat recreates a SprayRoutefor every connection.