Package dev.tachyonmcp.core.runtime
Interface SseConnection
- All Known Implementing Classes:
NettySseConnection
A writable SSE connection to a client.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Closes the connection.booleanReturnstrueif the underlying channel is writable.static SseConnectionnoop()Returns the no-op connection singleton: not writable, drops every sent event.voidSends an SSE event to the client.
-
Method Details
-
isWritable
boolean isWritable()Returnstrueif the underlying channel is writable. -
send
Sends an SSE event to the client. -
close
default void close()Closes the connection. Idempotent. -
noop
Returns the no-op connection singleton: not writable, drops every sent event.
-