From 659065947729522e2a5d8f0478e0d773ceb049a5 Mon Sep 17 00:00:00 2001 From: shutterbug2000 Date: Sat, 20 May 2023 03:42:53 -0500 Subject: [PATCH] Store both session URLs on the Client object This removes the need for a DB to handle this --- client.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index 6c001fac..980cddf6 100644 --- a/client.go +++ b/client.go @@ -22,7 +22,7 @@ type Client struct { sequenceIDIn *Counter sequenceIDOut *Counter pid uint32 - localStationURL string + stationURLs []string connectionID uint32 pingCheckTimer *time.Timer pingKickTimer *time.Timer @@ -164,13 +164,13 @@ func (client *Client) PID() uint32 { } // SetLocalStationURL sets the clients Local Station URL -func (client *Client) SetLocalStationURL(localStationURL string) { - client.localStationURL = localStationURL +func (client *Client) SetStationURLs(stationURLs []string) { + client.stationURLs = stationURLs } // LocalStationURL returns the clients Local Station URL -func (client *Client) LocalStationURL() string { - return client.localStationURL +func (client *Client) StationURLs() []string { + return client.stationURLs } // SetConnectionID sets the clients Connection ID