Skip to content

Commit

Permalink
Remove sandbox backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
surminus committed Jan 23, 2025
1 parent 997c250 commit 727db4f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ably/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ func defaultFallbackHosts() []string {
}

func getEndpointFallbackHosts(endpoint string) []string {
if endpoint == "sandbox" {
return endpointFallbacks("sandbox", "ably-realtime-nonprod.com")
}

if strings.HasPrefix(endpoint, "nonprod:") {
namespace := strings.TrimPrefix(endpoint, "nonprod:")
return endpointFallbacks(namespace, "ably-realtime-nonprod.com")
Expand Down Expand Up @@ -504,10 +500,6 @@ func (opts *clientOptions) getHostname() string {
return endpoint
}

if endpoint == "sandbox" {
return "sandbox.realtime.ably-nonprod.net"
}

if strings.HasPrefix(endpoint, "nonprod:") {
namespace := strings.TrimPrefix(endpoint, "nonprod:")
return fmt.Sprintf("%s.realtime.ably-nonprod.net", namespace)
Expand Down

0 comments on commit 727db4f

Please sign in to comment.