rolling back header auth for realtime-js connection

This commit is contained in:
awalias committed 2020-04-03 22:04:34 +08:00
1 parent 45480c1a10
commit 6e2990702f
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ class Supabase {
this.tableName == '*'
? 'realtime:*'
: `realtime:${this.schema}:${this.tableName}${filterString}`
this.socket = new Socket(socketUrl, { headers: { apikey: this.apikey } })
this.socket = new Socket(socketUrl, { params: { apikey: this.apikey } })
this.channel = this.socket.channel(channel)
this.socket.onOpen(() => {