Skip to content

Commit 4f13738

Browse files
committed
move call
1 parent 5e4ff51 commit 4f13738

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SupabaseClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ export default class SupabaseClient<
101101
protected supabaseKey: string,
102102
options?: SupabaseClientOptions<SchemaName>
103103
) {
104-
if (!supabaseKey) throw new Error('supabaseKey is required.')
105-
106104
const baseUrl = validateSupabaseUrl(supabaseUrl)
105+
if (!supabaseKey) throw new Error('supabaseKey is required.')
107106

108107
this.realtimeUrl = new URL('realtime/v1', baseUrl)
109108
this.realtimeUrl.protocol = this.realtimeUrl.protocol.replace('http', 'ws')

0 commit comments

Comments
 (0)