Class ServerHostApi
java.lang.Object
com.github.copilot.generated.rpc.ServerHostApi
API methods for the
host namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondispose(HostDisposeParams params) Stops a listener owned by this SDK connection and joins its cleanup without deleting sessions.listSessions(HostListSessionsParams params) Reads the complete advertised live and dormant session catalog of an existing host owned by this connection.Publishes an attached resident session for this listener's lifetime without copying it.start(HostStartParams params) Starts a connection-owned AHP host with explicit localServer and/or githubEnvironment transports as a supervised SDK participant.start(HostStartRequest request) Starts a connection-owned AHP host with explicit localServer and/or githubEnvironment transports as a supervised SDK participant.
-
Method Details
-
publishSession
@CopilotExperimental public CompletableFuture<HostPublishSessionResult> publishSession(HostPublishSessionParams params) Publishes an attached resident session for this listener's lifetime without copying it.- Since:
- 1.0.0
-
listSessions
@CopilotExperimental public CompletableFuture<HostListSessionsResult> listSessions(HostListSessionsParams params) Reads the complete advertised live and dormant session catalog of an existing host owned by this connection. Does not start hosting, subscribe to sessions, or guarantee resumability.- Since:
- 1.0.0
-
start
Starts a connection-owned AHP host with explicit localServer and/or githubEnvironment transports as a supervised SDK participant.- Since:
- 1.0.0
-
start
Starts a connection-owned AHP host with explicit localServer and/or githubEnvironment transports as a supervised SDK participant.Accepts the extensible request, including inputs added after the params record.
- Since:
- 1.0.0
-
dispose
Stops a listener owned by this SDK connection and joins its cleanup without deleting sessions.- Since:
- 1.0.0
-