mirror of
https://github.com/fosrl/newt.git
synced 2026-03-07 03:06:42 +00:00
Add get config
This commit is contained in:
@@ -98,6 +98,10 @@ func NewClient(clientType string, ID, secret string, endpoint string, pingInterv
|
|||||||
return client, nil
|
return client, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) GetConfig() *Config {
|
||||||
|
return c.config
|
||||||
|
}
|
||||||
|
|
||||||
// Connect establishes the WebSocket connection
|
// Connect establishes the WebSocket connection
|
||||||
func (c *Client) Connect() error {
|
func (c *Client) Connect() error {
|
||||||
go c.connectWithRetry()
|
go c.connectWithRetry()
|
||||||
|
|||||||
Reference in New Issue
Block a user