server: add ServerSession.ID()

This commit is contained in:
aler9
2021-05-08 00:25:17 +02:00
parent f86aad4135
commit d3361ffd90

View File

@@ -162,6 +162,11 @@ func (ss *ServerSession) Close() error {
return nil return nil
} }
// ID returns the ID of the session.
func (ss *ServerSession) ID() string {
return ss.id
}
// State returns the state of the session. // State returns the state of the session.
func (ss *ServerSession) State() ServerSessionState { func (ss *ServerSession) State() ServerSessionState {
return ss.state return ss.state