diff --git a/ssntp/client.go b/ssntp/client.go index 2e9114cfe..c068a8cbd 100644 --- a/ssntp/client.go +++ b/ssntp/client.go @@ -482,6 +482,11 @@ func (client *Client) SendTracedError(error Error, payload []byte, trace *TraceC return client.sendError(error, payload, trace) } +// Role exports the SSNTP client role. +func (client *Client) Role() Role { + return client.role +} + // UUID exports the SSNTP client Universally Unique ID. func (client *Client) UUID() string { return client.uuid.String()