getSessionById method
Gets a session by its unique id.
correlationId
(optional) transaction id to trace execution through call chain.sessionId
an id of session to be retrieved. Return Future that receives session or error.
Implementation
@override
Future<SessionV1> getSessionById(
String? correlationId, String sessionId) async {
var timing = instrument(correlationId, 'sessions.get_session_by_id');
var session = await controller.getSessionById(correlationId, sessionId);
timing.endTiming();
return session;
}