We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4ff51 commit 4f13738Copy full SHA for 4f13738
src/SupabaseClient.ts
@@ -101,9 +101,8 @@ export default class SupabaseClient<
101
protected supabaseKey: string,
102
options?: SupabaseClientOptions<SchemaName>
103
) {
104
- if (!supabaseKey) throw new Error('supabaseKey is required.')
105
-
106
const baseUrl = validateSupabaseUrl(supabaseUrl)
+ if (!supabaseKey) throw new Error('supabaseKey is required.')
107
108
this.realtimeUrl = new URL('realtime/v1', baseUrl)
109
this.realtimeUrl.protocol = this.realtimeUrl.protocol.replace('http', 'ws')
0 commit comments