sttp.tapir.server.netty.internal.ws

Members list

Type members

Classlikes

class NettyControlFrameHandler(ignorePong: Boolean, autoPongOnPing: Boolean, decodeCloseRequests: Boolean) extends ChannelInboundHandlerAdapter

Handles Ping, Pong, and Close frames for WebSockets.

Handles Ping, Pong, and Close frames for WebSockets.

Attributes

Supertypes
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Show all
class WebSocketAutoPingHandler(pingInterval: FiniteDuration, frame: Ping) extends ChannelInboundHandlerAdapter

If auto ping is enabled for an endpoint, this handler will be plugged into the pipeline. Its responsibility is to manage start and stop of the ping scheduler.

If auto ping is enabled for an endpoint, this handler will be plugged into the pipeline. Its responsibility is to manage start and stop of the ping scheduler.

Value parameters

frame

desired content of the Ping frame, as specified in the Tapir endpoint output.

pingInterval

time interval to be used between sending pings to the client.

Attributes

Supertypes
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type