http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-server-netty
/
org.http4k.server
/
WebSocketServerHandler
Web
Socket
Server
Handler
class
WebSocketServerHandler
(
wsHandler
:
WsHandler
,
appExecutor
:
Executor
,
heartBeatInterval
:
Duration
=
Duration.ofSeconds(60)
)
:
ChannelInboundHandlerAdapter
(
source
)
Members
Constructors
Web
Socket
Server
Handler
Link copied to clipboard
constructor
(
wsHandler
:
WsHandler
,
appExecutor
:
Executor
,
heartBeatInterval
:
Duration
=
Duration.ofSeconds(60)
)
Properties
is
Sharable
Link copied to clipboard
open
val
isSharable
:
Boolean
Functions
channel
Active
Link copied to clipboard
open
fun
channelActive
(
ctx
:
ChannelHandlerContext
?
)
channel
Inactive
Link copied to clipboard
open
fun
channelInactive
(
ctx
:
ChannelHandlerContext
?
)
channel
Read
Link copied to clipboard
open
override
fun
channelRead
(
ctx
:
ChannelHandlerContext
,
msg
:
Any
)
channel
Read
Complete
Link copied to clipboard
open
fun
channelReadComplete
(
ctx
:
ChannelHandlerContext
?
)
channel
Registered
Link copied to clipboard
open
fun
channelRegistered
(
ctx
:
ChannelHandlerContext
?
)
channel
Unregistered
Link copied to clipboard
open
fun
channelUnregistered
(
ctx
:
ChannelHandlerContext
?
)
channel
Writability
Changed
Link copied to clipboard
open
fun
channelWritabilityChanged
(
ctx
:
ChannelHandlerContext
?
)
exception
Caught
Link copied to clipboard
open
fun
exceptionCaught
(
ctx
:
ChannelHandlerContext
?
,
cause
:
Throwable
?
)
handler
Added
Link copied to clipboard
open
fun
handlerAdded
(
ctx
:
ChannelHandlerContext
?
)
handler
Removed
Link copied to clipboard
open
fun
handlerRemoved
(
ctx
:
ChannelHandlerContext
?
)
user
Event
Triggered
Link copied to clipboard
open
fun
userEventTriggered
(
ctx
:
ChannelHandlerContext
?
,
evt
:
Any
?
)