A PushListener provide a method, listen, to expose a server on the the
given SocketAddress. sessionBuilder is called for each new connection.
It is furnished with a typed PushChannelHandle representing this connection
and expects a PushSession to be returned asynchronously, at which point
the session will begin to receive events. The returned ListeningServer
is used to inspect the server and to shut it down.
A
PushListener
provide a method,listen
, to expose a server on the the given SocketAddress.sessionBuilder
is called for each new connection. It is furnished with a typed PushChannelHandle representing this connection and expects a PushSession to be returned asynchronously, at which point the session will begin to receive events. The returned ListeningServer is used to inspect the server and to shut it down.