{
"id": 0,
"name": "@supabase/realtime-js",
"variant": "project",
"kind": 1,
"flags": {},
"children": [
{
"id": 683,
"name": "REALTIME_LISTEN_TYPES",
"variant": "declaration",
"kind": 8,
"flags": {},
"children": [
{
"id": 684,
"name": "BROADCAST",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 136,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L136"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 686,
"name": "POSTGRES_CHANGES",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 138,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L138"
}
],
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 685,
"name": "PRESENCE",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 137,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L137"
}
],
"type": {
"type": "literal",
"value": "presence"
}
},
{
"id": 687,
"name": "SYSTEM",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 139,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L139"
}
],
"type": {
"type": "literal",
"value": "system"
}
}
],
"groups": [
{
"title": "Enumeration Members",
"children": [684, 686, 685, 687]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 135,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L135"
}
]
},
{
"id": 688,
"name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",
"variant": "declaration",
"kind": 8,
"flags": {},
"children": [
{
"id": 689,
"name": "ALL",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 129,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L129"
}
],
"type": {
"type": "literal",
"value": "*"
}
},
{
"id": 692,
"name": "DELETE",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 132,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L132"
}
],
"type": {
"type": "literal",
"value": "DELETE"
}
},
{
"id": 690,
"name": "INSERT",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 130,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L130"
}
],
"type": {
"type": "literal",
"value": "INSERT"
}
},
{
"id": 691,
"name": "UPDATE",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 131,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L131"
}
],
"type": {
"type": "literal",
"value": "UPDATE"
}
}
],
"groups": [
{
"title": "Enumeration Members",
"children": [689, 692, 690, 691]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 128,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L128"
}
]
},
{
"id": 693,
"name": "REALTIME_PRESENCE_LISTEN_EVENTS",
"variant": "declaration",
"kind": 8,
"flags": {},
"children": [
{
"id": 695,
"name": "JOIN",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 33,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L33"
}
],
"type": {
"type": "literal",
"value": "join"
}
},
{
"id": 696,
"name": "LEAVE",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 34,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L34"
}
],
"type": {
"type": "literal",
"value": "leave"
}
},
{
"id": 694,
"name": "SYNC",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 32,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L32"
}
],
"type": {
"type": "literal",
"value": "sync"
}
}
],
"groups": [
{
"title": "Enumeration Members",
"children": [695, 696, 694]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 31,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L31"
}
]
},
{
"id": 697,
"name": "REALTIME_SUBSCRIBE_STATES",
"variant": "declaration",
"kind": 8,
"flags": {},
"children": [
{
"id": 701,
"name": "CHANNEL_ERROR",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 146,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L146"
}
],
"type": {
"type": "literal",
"value": "CHANNEL_ERROR"
}
},
{
"id": 700,
"name": "CLOSED",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 145,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L145"
}
],
"type": {
"type": "literal",
"value": "CLOSED"
}
},
{
"id": 698,
"name": "SUBSCRIBED",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 143,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L143"
}
],
"type": {
"type": "literal",
"value": "SUBSCRIBED"
}
},
{
"id": 699,
"name": "TIMED_OUT",
"variant": "declaration",
"kind": 16,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 144,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L144"
}
],
"type": {
"type": "literal",
"value": "TIMED_OUT"
}
}
],
"groups": [
{
"title": "Enumeration Members",
"children": [701, 700, 698, 699]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 142,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L142"
}
]
},
{
"id": 10,
"name": "RealtimeChannel",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
}
]
},
"children": [
{
"id": 15,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 225,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L225"
}
],
"signatures": [
{
"id": 16,
"name": "RealtimeChannel",
"variant": "signature",
"kind": 16384,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates a channel that can broadcast messages, sync presence, and listen to Postgres changes.\n\nThe topic determines which realtime stream you are subscribing to. Config options let you\nenable acknowledgement for broadcasts, presence tracking, or private channels."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@example",
"name": "Example for a public channel",
"content": [
{
"kind": "code",
"text": "```ts\nimport RealtimeClient from '@supabase/realtime-js'\n\nconst client = new RealtimeClient('https://xyzcompany.supabase.co/realtime/v1', {\n params: { apikey: 'public-anon-key' },\n})\nconst channel = new RealtimeChannel('realtime:public:messages', { config: {} }, client)\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 225,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L225"
}
],
"parameters": [
{
"id": 17,
"name": "topic",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Topic name can be any string."
}
]
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 18,
"name": "params",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 380,
"name": "RealtimeChannelOptions",
"package": "@supabase/realtime-js"
},
"defaultValue": "..."
},
{
"id": 19,
"name": "socket",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 395,
"name": "RealtimeClient",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 20,
"name": "bindings",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 175,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L175"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Record"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "Binding"
},
"name": "Binding",
"package": "@supabase/realtime-js"
}
}
],
"name": "Record",
"package": "typescript"
},
"defaultValue": "{}"
},
{
"id": 22,
"name": "broadcastEndpointURL",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 177,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L177"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 39,
"name": "params",
"variant": "declaration",
"kind": 1024,
"flags": {
"isPublic": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 228,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L228"
}
],
"type": {
"type": "reference",
"target": 380,
"name": "RealtimeChannelOptions",
"package": "@supabase/realtime-js"
},
"defaultValue": "..."
},
{
"id": 24,
"name": "presence",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 179,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L179"
}
],
"type": {
"type": "reference",
"target": 1,
"name": "RealtimePresence",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 23,
"name": "private",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 178,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L178"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 40,
"name": "socket",
"variant": "declaration",
"kind": 1024,
"flags": {
"isPublic": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 229,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L229"
}
],
"type": {
"type": "reference",
"target": 395,
"name": "RealtimeClient",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 21,
"name": "subTopic",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 176,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L176"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 38,
"name": "topic",
"variant": "declaration",
"kind": 1024,
"flags": {
"isPublic": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Topic name can be any string."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 227,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L227"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 30,
"name": "joinedOnce",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 191,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L191"
}
],
"getSignature": {
"id": 31,
"name": "joinedOnce",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 191,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L191"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
},
{
"id": 34,
"name": "joinPush",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 199,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L199"
}
],
"getSignature": {
"id": 35,
"name": "joinPush",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 199,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L199"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/push.js",
"qualifiedName": "default"
},
"name": "Push",
"package": "@supabase/phoenix",
"qualifiedName": "default"
}
}
},
{
"id": 36,
"name": "rejoinTimer",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 203,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L203"
}
],
"getSignature": {
"id": 37,
"name": "rejoinTimer",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 203,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L203"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/timer.js",
"qualifiedName": "default"
},
"name": "Timer",
"package": "@supabase/phoenix",
"qualifiedName": "default"
}
}
},
{
"id": 26,
"name": "state",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 183,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L183"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 187,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L187"
}
],
"getSignature": {
"id": 27,
"name": "state",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 183,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L183"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "ChannelState"
},
"name": "ChannelState",
"package": "@supabase/phoenix"
}
},
"setSignature": {
"id": 28,
"name": "state",
"variant": "signature",
"kind": 1048576,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 187,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L187"
}
],
"parameters": [
{
"id": 29,
"name": "state",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "ChannelState"
},
"name": "ChannelState",
"package": "@supabase/phoenix"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
},
{
"id": 32,
"name": "timeout",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 195,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L195"
}
],
"getSignature": {
"id": 33,
"name": "timeout",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 195,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L195"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
},
{
"id": 369,
"name": "copyBindings",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 1063,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L1063"
}
],
"signatures": [
{
"id": 370,
"name": "copyBindings",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 1063,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L1063"
}
],
"parameters": [
{
"id": 371,
"name": "other",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 305,
"name": "httpSend",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 733,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L733"
}
],
"signatures": [
{
"id": 306,
"name": "httpSend",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sends a broadcast message explicitly via REST API.\n\nThis method always uses the REST API endpoint regardless of WebSocket connection state.\nUseful when you want to guarantee REST delivery or when gradually migrating from implicit REST fallback."
}
],
"blockTags": [
{
"tag": "@returns",
"content": [
{
"kind": "text",
"text": "Promise resolving to object with success status, and error details if failed"
}
]
},
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 733,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L733"
}
],
"parameters": [
{
"id": 307,
"name": "event",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The name of the broadcast event"
}
]
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 308,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Payload to be sent (required)"
}
]
},
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 309,
"name": "opts",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Options including timeout"
}
]
},
"type": {
"type": "reflection",
"declaration": {
"id": 310,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 311,
"name": "timeout",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 736,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L736"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"groups": [
{
"title": "Properties",
"children": [311]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 736,
"character": 10,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L736"
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "reflection",
"declaration": {
"id": 312,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 313,
"name": "success",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
],
"type": {
"type": "literal",
"value": true
}
}
],
"groups": [
{
"title": "Properties",
"children": [313]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
]
}
},
{
"type": "reflection",
"declaration": {
"id": 314,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 317,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 67,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 316,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 51,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 315,
"name": "success",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 35,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
],
"type": {
"type": "literal",
"value": false
}
}
],
"groups": [
{
"title": "Properties",
"children": [317, 316, 315]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 737,
"character": 33,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L737"
}
]
}
}
]
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 86,
"name": "on",
"variant": "declaration",
"kind": 2048,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Listen to realtime events on this channel."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@remarks",
"content": [
{
"kind": "text",
"text": "- By default, Broadcast and Presence are enabled for all projects.\n- By default, listening to database changes is disabled for new projects due to database performance and security concerns. You can turn it on by managing Realtime's [replication](/docs/guides/api#realtime-api-overview).\n- You can receive the \"previous\" data for updates and deletes by setting the table's "
},
{
"kind": "code",
"text": "`REPLICA IDENTITY`"
},
{
"kind": "text",
"text": " to "
},
{
"kind": "code",
"text": "`FULL`"
},
{
"kind": "text",
"text": " (e.g., "
},
{
"kind": "code",
"text": "`ALTER TABLE your_table REPLICA IDENTITY FULL;`"
},
{
"kind": "text",
"text": ").\n- Row level security is not applied to delete statements. When RLS is enabled and replica identity is set to full, only the primary key is sent to clients."
}
]
},
{
"tag": "@example",
"name": "Listen to broadcast messages",
"content": [
{
"kind": "code",
"text": "```js\nconst channel = supabase.channel(\"room1\")\n\nchannel.on(\"broadcast\", { event: \"cursor-pos\" }, (payload) => {\n console.log(\"Cursor position received!\", payload);\n}).subscribe((status) => {\n if (status === \"SUBSCRIBED\") {\n channel.send({\n type: \"broadcast\",\n event: \"cursor-pos\",\n payload: { x: Math.random(), y: Math.random() },\n });\n }\n});\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to presence sync",
"content": [
{
"kind": "code",
"text": "```js\nconst channel = supabase.channel('room1')\nchannel\n .on('presence', { event: 'sync' }, () => {\n console.log('Synced presence state: ', channel.presenceState())\n })\n .subscribe(async (status) => {\n if (status === 'SUBSCRIBED') {\n await channel.track({ online_at: new Date().toISOString() })\n }\n })\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to presence join",
"content": [
{
"kind": "code",
"text": "```js\nconst channel = supabase.channel('room1')\nchannel\n .on('presence', { event: 'join' }, ({ newPresences }) => {\n console.log('Newly joined presences: ', newPresences)\n })\n .subscribe(async (status) => {\n if (status === 'SUBSCRIBED') {\n await channel.track({ online_at: new Date().toISOString() })\n }\n })\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to presence leave",
"content": [
{
"kind": "code",
"text": "```js\nconst channel = supabase.channel('room1')\nchannel\n .on('presence', { event: 'leave' }, ({ leftPresences }) => {\n console.log('Newly left presences: ', leftPresences)\n })\n .subscribe(async (status) => {\n if (status === 'SUBSCRIBED') {\n await channel.track({ online_at: new Date().toISOString() })\n await channel.untrack()\n }\n })\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to all database changes",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: '*', schema: '*' }, payload => {\n console.log('Change received!', payload)\n })\n .subscribe()\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to a specific table",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: '*', schema: 'public', table: 'countries' }, payload => {\n console.log('Change received!', payload)\n })\n .subscribe()\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to inserts",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'countries' }, payload => {\n console.log('Change received!', payload)\n })\n .subscribe()\n```"
}
]
},
{
"tag": "@exampleDescription",
"content": [
{
"kind": "text",
"text": "Listen to updates\nBy default, Supabase will send only the updated record. If you want to receive the previous values as well you can\nenable full replication for the table you are listening to:\n\n"
},
{
"kind": "code",
"text": "```sql\nalter table \"your_table\" replica identity full;\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to updates",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: 'UPDATE', schema: 'public', table: 'countries' }, payload => {\n console.log('Change received!', payload)\n })\n .subscribe()\n```"
}
]
},
{
"tag": "@exampleDescription",
"content": [
{
"kind": "text",
"text": "Listen to deletes\nBy default, Supabase does not send deleted records. If you want to receive the deleted record you can\nenable full replication for the table you are listening to:\n\n"
},
{
"kind": "code",
"text": "```sql\nalter table \"your_table\" replica identity full;\n```"
}
]
},
{
"tag": "@example",
"name": "Listen to deletes",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: 'DELETE', schema: 'public', table: 'countries' }, payload => {\n console.log('Change received!', payload)\n })\n .subscribe()\n```"
}
]
},
{
"tag": "@exampleDescription",
"content": [
{
"kind": "text",
"text": "Listen to multiple events\nYou can chain listeners if you want to listen to multiple events for each table."
}
]
},
{
"tag": "@example",
"name": "Listen to multiple events",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'countries' }, handleRecordInserted)\n .on('postgres_changes', { event: 'DELETE', schema: 'public', table: 'countries' }, handleRecordDeleted)\n .subscribe()\n```"
}
]
},
{
"tag": "@exampleDescription",
"content": [
{
"kind": "text",
"text": "Listen to row level changes\nYou can listen to individual rows using the format "
},
{
"kind": "code",
"text": "`{table}:{col}=eq.{val}`"
},
{
"kind": "text",
"text": " - where "
},
{
"kind": "code",
"text": "`{col}`"
},
{
"kind": "text",
"text": " is the column name, and "
},
{
"kind": "code",
"text": "`{val}`"
},
{
"kind": "text",
"text": " is the value which you want to match."
}
]
},
{
"tag": "@example",
"name": "Listen to row level changes",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .on('postgres_changes', { event: 'UPDATE', schema: 'public', table: 'countries', filter: 'id=eq.200' }, handleRecordUpdated)\n .subscribe()\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 425,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L425"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 430,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L430"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 435,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L435"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 440,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L440"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 445,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L445"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 450,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L450"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 455,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L455"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 460,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L460"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 465,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L465"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 476,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L476"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 489,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L489"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 502,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L502"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 511,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L511"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 520,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L520"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 529,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L529"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 538,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L538"
},
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 702,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L702"
}
],
"signatures": [
{
"id": 87,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 425,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L425"
}
],
"parameters": [
{
"id": 88,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "presence"
}
},
{
"id": 89,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 90,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 91,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 427,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L427"
}
],
"type": {
"type": "literal",
"value": "sync"
}
}
],
"groups": [
{
"title": "Properties",
"children": [91]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 427,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L427"
}
]
}
}
},
{
"id": 92,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 93,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 428,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L428"
}
],
"signatures": [
{
"id": 94,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 428,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L428"
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 95,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 430,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L430"
}
],
"typeParameters": [
{
"id": 96,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 97,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 430,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L430"
}
],
"indexSignatures": [
{
"id": 98,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 430,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L430"
}
],
"parameters": [
{
"id": 99,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 100,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "presence"
}
},
{
"id": 101,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 102,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 103,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 432,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L432"
}
],
"type": {
"type": "literal",
"value": "join"
}
}
],
"groups": [
{
"title": "Properties",
"children": [103]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 432,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L432"
}
]
}
}
},
{
"id": 104,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 105,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 433,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L433"
}
],
"signatures": [
{
"id": 106,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 433,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L433"
}
],
"parameters": [
{
"id": 107,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 653,
"typeArguments": [
{
"type": "reference",
"target": 96,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePresenceJoinPayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 108,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 435,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L435"
}
],
"typeParameters": [
{
"id": 109,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 110,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 435,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L435"
}
],
"indexSignatures": [
{
"id": 111,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 435,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L435"
}
],
"parameters": [
{
"id": 112,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 113,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "presence"
}
},
{
"id": 114,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 115,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 116,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 437,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L437"
}
],
"type": {
"type": "literal",
"value": "leave"
}
}
],
"groups": [
{
"title": "Properties",
"children": [116]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 437,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L437"
}
]
}
}
},
{
"id": 117,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 118,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 438,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L438"
}
],
"signatures": [
{
"id": 119,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 438,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L438"
}
],
"parameters": [
{
"id": 120,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 663,
"typeArguments": [
{
"type": "reference",
"target": 109,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePresenceLeavePayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 121,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 440,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L440"
}
],
"typeParameters": [
{
"id": 122,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 123,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 440,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L440"
}
],
"indexSignatures": [
{
"id": 124,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 440,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L440"
}
],
"parameters": [
{
"id": 125,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 126,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "presence"
}
},
{
"id": 127,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 128,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 129,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 442,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L442"
}
],
"type": {
"type": "literal",
"value": "*"
}
}
],
"groups": [
{
"title": "Properties",
"children": [129]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 442,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L442"
}
]
}
}
},
{
"id": 130,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 131,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 443,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L443"
}
],
"signatures": [
{
"id": 132,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 443,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L443"
}
],
"parameters": [
{
"id": 133,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"target": 653,
"typeArguments": [
{
"type": "reference",
"target": 122,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePresenceJoinPayload",
"package": "@supabase/realtime-js"
},
{
"type": "reference",
"target": 663,
"typeArguments": [
{
"type": "reference",
"target": 122,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePresenceLeavePayload",
"package": "@supabase/realtime-js"
}
]
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 134,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 445,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L445"
}
],
"typeParameters": [
{
"id": 135,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 136,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 445,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L445"
}
],
"indexSignatures": [
{
"id": 137,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 445,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L445"
}
],
"parameters": [
{
"id": 138,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 139,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 140,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 612,
"typeArguments": [
{
"type": "literal",
"value": "*"
}
],
"name": "RealtimePostgresChangesFilter",
"package": "@supabase/realtime-js"
}
},
{
"id": 141,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 142,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 448,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L448"
}
],
"signatures": [
{
"id": 143,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 448,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L448"
}
],
"parameters": [
{
"id": 144,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 619,
"typeArguments": [
{
"type": "reference",
"target": 135,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresChangesPayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 145,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 450,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L450"
}
],
"typeParameters": [
{
"id": 146,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 147,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 450,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L450"
}
],
"indexSignatures": [
{
"id": 148,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 450,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L450"
}
],
"parameters": [
{
"id": 149,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 150,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 151,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 612,
"typeArguments": [
{
"type": "literal",
"value": "INSERT"
}
],
"name": "RealtimePostgresChangesFilter",
"package": "@supabase/realtime-js"
}
},
{
"id": 152,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 153,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 453,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L453"
}
],
"signatures": [
{
"id": 154,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 453,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L453"
}
],
"parameters": [
{
"id": 155,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 624,
"typeArguments": [
{
"type": "reference",
"target": 146,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresInsertPayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 156,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 455,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L455"
}
],
"typeParameters": [
{
"id": 157,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 158,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 455,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L455"
}
],
"indexSignatures": [
{
"id": 159,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 455,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L455"
}
],
"parameters": [
{
"id": 160,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 161,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 162,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 612,
"typeArguments": [
{
"type": "literal",
"value": "UPDATE"
}
],
"name": "RealtimePostgresChangesFilter",
"package": "@supabase/realtime-js"
}
},
{
"id": 163,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 164,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 458,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L458"
}
],
"signatures": [
{
"id": 165,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 458,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L458"
}
],
"parameters": [
{
"id": 166,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 634,
"typeArguments": [
{
"type": "reference",
"target": 157,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresUpdatePayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 167,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 460,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L460"
}
],
"typeParameters": [
{
"id": 168,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 169,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 460,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L460"
}
],
"indexSignatures": [
{
"id": 170,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 460,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L460"
}
],
"parameters": [
{
"id": 171,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 172,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 173,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 612,
"typeArguments": [
{
"type": "literal",
"value": "DELETE"
}
],
"name": "RealtimePostgresChangesFilter",
"package": "@supabase/realtime-js"
}
},
{
"id": 174,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 175,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 463,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L463"
}
],
"signatures": [
{
"id": 176,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 463,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L463"
}
],
"parameters": [
{
"id": 177,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 643,
"typeArguments": [
{
"type": "reference",
"target": 168,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresDeletePayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 178,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 465,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L465"
}
],
"typeParameters": [
{
"id": 179,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 180,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 465,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L465"
}
],
"indexSignatures": [
{
"id": 181,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 465,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L465"
}
],
"parameters": [
{
"id": 182,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 183,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "postgres_changes"
}
},
{
"id": 184,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 612,
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "literal",
"value": "INSERT"
},
{
"type": "literal",
"value": "UPDATE"
},
{
"type": "literal",
"value": "DELETE"
},
{
"type": "literal",
"value": "*"
}
]
}
],
"name": "RealtimePostgresChangesFilter",
"package": "@supabase/realtime-js"
}
},
{
"id": 185,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 186,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 468,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L468"
}
],
"signatures": [
{
"id": 187,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 468,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L468"
}
],
"parameters": [
{
"id": 188,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 619,
"typeArguments": [
{
"type": "reference",
"target": 179,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresChangesPayload",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 189,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The following is placed here to display on supabase.com/docs/reference/javascript/subscribe."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 476,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L476"
}
],
"parameters": [
{
"id": 190,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "One of \"broadcast\", \"presence\", or \"postgres_changes\"."
}
]
},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 191,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Custom object specific to the Realtime feature detailing which payloads to receive."
}
]
},
"type": {
"type": "reflection",
"declaration": {
"id": 192,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 193,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 478,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L478"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [193]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 478,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L478"
}
]
}
}
},
{
"id": 194,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Function to be invoked when event handler is triggered."
}
]
},
"type": {
"type": "reflection",
"declaration": {
"id": 195,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 479,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L479"
}
],
"signatures": [
{
"id": 196,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 479,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L479"
}
],
"parameters": [
{
"id": 197,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 198,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 200,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 481,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L481"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 201,
"name": "meta",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 482,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L482"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 202,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 204,
"name": "id",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 484,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L484"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 203,
"name": "replayed",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 483,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L483"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"children": [204, 203]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 482,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L482"
}
]
}
}
},
{
"id": 199,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 480,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L480"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [200, 201, 199]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 479,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L479"
}
],
"indexSignatures": [
{
"id": 205,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 486,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L486"
}
],
"parameters": [
{
"id": 206,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 207,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 489,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L489"
}
],
"typeParameters": [
{
"id": 208,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 209,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 489,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L489"
}
],
"indexSignatures": [
{
"id": 210,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 489,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L489"
}
],
"parameters": [
{
"id": 211,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 212,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 213,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 214,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 215,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 491,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L491"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [215]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 491,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L491"
}
]
}
}
},
{
"id": 216,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 217,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 492,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L492"
}
],
"signatures": [
{
"id": 218,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 492,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L492"
}
],
"parameters": [
{
"id": 219,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 220,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 222,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 494,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L494"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 223,
"name": "meta",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 495,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L495"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 224,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 226,
"name": "id",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 497,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L497"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 225,
"name": "replayed",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 496,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L496"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"children": [226, 225]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 495,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L495"
}
]
}
}
},
{
"id": 227,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 499,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L499"
}
],
"type": {
"type": "reference",
"target": 208,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
},
{
"id": 221,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 493,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L493"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [222, 223, 227, 221]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 492,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L492"
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 228,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 502,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L502"
}
],
"typeParameters": [
{
"id": 229,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Record"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"name": "Record",
"package": "typescript"
}
}
],
"parameters": [
{
"id": 230,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 231,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 232,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 233,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 504,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L504"
}
],
"type": {
"type": "reference",
"target": 689,
"name": "ALL",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.ALL"
}
}
],
"groups": [
{
"title": "Properties",
"children": [233]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 504,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L504"
}
]
}
}
},
{
"id": 234,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 235,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 505,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L505"
}
],
"signatures": [
{
"id": 236,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 505,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L505"
}
],
"parameters": [
{
"id": 237,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 238,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 240,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 507,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L507"
}
],
"type": {
"type": "reference",
"target": 689,
"name": "ALL",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.ALL"
}
},
{
"id": 241,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 508,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L508"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimeBroadcastPayload"
},
"typeArguments": [
{
"type": "reference",
"target": 229,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimeBroadcastPayload",
"package": "@supabase/realtime-js"
}
},
{
"id": 239,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 506,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L506"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [240, 241, 239]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 505,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L505"
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 242,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 511,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L511"
}
],
"typeParameters": [
{
"id": 243,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 244,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 511,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L511"
}
],
"indexSignatures": [
{
"id": 245,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 511,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L511"
}
],
"parameters": [
{
"id": 246,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 247,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 248,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 249,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 250,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 513,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L513"
}
],
"type": {
"type": "reference",
"target": 690,
"name": "INSERT",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT"
}
}
],
"groups": [
{
"title": "Properties",
"children": [250]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 513,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L513"
}
]
}
}
},
{
"id": 251,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 252,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 514,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L514"
}
],
"signatures": [
{
"id": 253,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 514,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L514"
}
],
"parameters": [
{
"id": 254,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 255,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 257,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 516,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L516"
}
],
"type": {
"type": "reference",
"target": 690,
"name": "INSERT",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT"
}
},
{
"id": 258,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 517,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L517"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimeBroadcastInsertPayload"
},
"typeArguments": [
{
"type": "reference",
"target": 243,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimeBroadcastInsertPayload",
"package": "@supabase/realtime-js"
}
},
{
"id": 256,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 515,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L515"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [257, 258, 256]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 514,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L514"
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 259,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 520,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L520"
}
],
"typeParameters": [
{
"id": 260,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 261,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 520,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L520"
}
],
"indexSignatures": [
{
"id": 262,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 520,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L520"
}
],
"parameters": [
{
"id": 263,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 264,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 265,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 266,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 267,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 522,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L522"
}
],
"type": {
"type": "reference",
"target": 691,
"name": "UPDATE",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE"
}
}
],
"groups": [
{
"title": "Properties",
"children": [267]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 522,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L522"
}
]
}
}
},
{
"id": 268,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 269,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 523,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L523"
}
],
"signatures": [
{
"id": 270,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 523,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L523"
}
],
"parameters": [
{
"id": 271,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 272,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 274,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 525,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L525"
}
],
"type": {
"type": "reference",
"target": 691,
"name": "UPDATE",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE"
}
},
{
"id": 275,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 526,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L526"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimeBroadcastUpdatePayload"
},
"typeArguments": [
{
"type": "reference",
"target": 260,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimeBroadcastUpdatePayload",
"package": "@supabase/realtime-js"
}
},
{
"id": 273,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 524,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L524"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [274, 275, 273]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 523,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L523"
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 276,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 529,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L529"
}
],
"typeParameters": [
{
"id": 277,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 278,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 529,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L529"
}
],
"indexSignatures": [
{
"id": 279,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 529,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L529"
}
],
"parameters": [
{
"id": 280,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 281,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "broadcast"
}
},
{
"id": 282,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 283,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 284,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 531,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L531"
}
],
"type": {
"type": "reference",
"target": 692,
"name": "DELETE",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE"
}
}
],
"groups": [
{
"title": "Properties",
"children": [284]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 531,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L531"
}
]
}
}
},
{
"id": 285,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 286,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 532,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L532"
}
],
"signatures": [
{
"id": 287,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 532,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L532"
}
],
"parameters": [
{
"id": 288,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 289,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 291,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 534,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L534"
}
],
"type": {
"type": "reference",
"target": 692,
"name": "DELETE",
"package": "@supabase/realtime-js",
"qualifiedName": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE"
}
},
{
"id": 292,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 535,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L535"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimeBroadcastDeletePayload"
},
"typeArguments": [
{
"type": "reference",
"target": 277,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimeBroadcastDeletePayload",
"package": "@supabase/realtime-js"
}
},
{
"id": 290,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 533,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L533"
}
],
"type": {
"type": "literal",
"value": "broadcast"
}
}
],
"groups": [
{
"title": "Properties",
"children": [291, 292, 290]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 532,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L532"
}
]
}
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 293,
"name": "on",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an event handler that listens to changes."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 538,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L538"
}
],
"typeParameters": [
{
"id": 294,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 295,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 538,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L538"
}
],
"indexSignatures": [
{
"id": 296,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 538,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L538"
}
],
"parameters": [
{
"id": 297,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"parameters": [
{
"id": 298,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "literal",
"value": "system"
}
},
{
"id": 299,
"name": "filter",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 300,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
},
{
"id": 301,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 302,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 541,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L541"
}
],
"signatures": [
{
"id": 303,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 541,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L541"
}
],
"parameters": [
{
"id": 304,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 63,
"name": "presenceState",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 383,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L383"
}
],
"signatures": [
{
"id": 64,
"name": "presenceState",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns the current presence state for this channel.\n\nThe shape is a map keyed by presence key (for example a user id) where each entry contains the\ntracked metadata for that user."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 383,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L383"
}
],
"typeParameters": [
{
"id": 65,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 66,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 383,
"character": 26,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L383"
}
],
"indexSignatures": [
{
"id": 67,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 383,
"character": 28,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L383"
}
],
"parameters": [
{
"id": 68,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
},
"default": {
"type": "reflection",
"declaration": {
"id": 69,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
}
],
"type": {
"type": "reference",
"target": 673,
"typeArguments": [
{
"type": "reference",
"target": 65,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePresenceState",
"package": "@supabase/realtime-js"
}
}
]
},
{
"id": 318,
"name": "send",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 827,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L827"
}
],
"signatures": [
{
"id": 319,
"name": "send",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sends a message into the channel."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@remarks",
"content": [
{
"kind": "text",
"text": "- When using REST you don't need to subscribe to the channel\n- REST calls are only available from 2.37.0 onwards"
}
]
},
{
"tag": "@example",
"name": "Send a message via websocket",
"content": [
{
"kind": "code",
"text": "```js\nconst channel = supabase.channel('room1')\n\nchannel.subscribe((status) => {\n if (status === 'SUBSCRIBED') {\n channel.send({\n type: 'broadcast',\n event: 'cursor-pos',\n payload: { x: Math.random(), y: Math.random() },\n })\n }\n})\n```"
}
]
},
{
"tag": "@exampleResponse",
"content": [
{
"kind": "text",
"text": "Send a message via websocket\n"
},
{
"kind": "code",
"text": "```js\nok | timed out | error\n```"
}
]
},
{
"tag": "@example",
"name": "Send a message via REST",
"content": [
{
"kind": "code",
"text": "```js\nsupabase\n .channel('room1')\n .httpSend('cursor-pos', { x: Math.random(), y: Math.random() })\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 827,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L827"
}
],
"parameters": [
{
"id": 320,
"name": "args",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Arguments to send to channel"
}
]
},
"type": {
"type": "reflection",
"declaration": {
"id": 321,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 323,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The name of the event being sent"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 830,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L830"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 324,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Payload to be sent"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 831,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L831"
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 322,
"name": "type",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The type of event to send"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 829,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L829"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "broadcast"
},
{
"type": "literal",
"value": "presence"
},
{
"type": "literal",
"value": "postgres_changes"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"children": [323, 324, 322]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 828,
"character": 10,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L828"
}
],
"indexSignatures": [
{
"id": 325,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 832,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L832"
}
],
"parameters": [
{
"id": 326,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
},
{
"id": 327,
"name": "opts",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Options to be used during the send process"
}
]
},
"type": {
"type": "reflection",
"declaration": {
"id": 328,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 834,
"character": 10,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L834"
}
],
"indexSignatures": [
{
"id": 329,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 834,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L834"
}
],
"parameters": [
{
"id": 330,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 394,
"name": "RealtimeChannelSendResponse",
"package": "@supabase/realtime-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 41,
"name": "subscribe",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 262,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L262"
}
],
"signatures": [
{
"id": 42,
"name": "subscribe",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Subscribe registers your client with the server"
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 262,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L262"
}
],
"parameters": [
{
"id": 43,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reflection",
"declaration": {
"id": 44,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 263,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L263"
}
],
"signatures": [
{
"id": 45,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 263,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L263"
}
],
"parameters": [
{
"id": 46,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 697,
"name": "REALTIME_SUBSCRIBE_STATES",
"package": "@supabase/realtime-js"
}
},
{
"id": 47,
"name": "err",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Error"
},
"name": "Error",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
},
{
"id": 48,
"name": "timeout",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
},
"defaultValue": "..."
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 337,
"name": "teardown",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 935,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L935"
}
],
"signatures": [
{
"id": 338,
"name": "teardown",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Destroys and stops related timers."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 935,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L935"
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 70,
"name": "track",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 393,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L393"
}
],
"signatures": [
{
"id": 71,
"name": "track",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sends the supplied payload to the presence tracker so other subscribers can see that this\nclient is online. Use "
},
{
"kind": "code",
"text": "`untrack`"
},
{
"kind": "text",
"text": " to stop broadcasting presence for the same key."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 393,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L393"
}
],
"parameters": [
{
"id": 72,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 73,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 394,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L394"
}
],
"indexSignatures": [
{
"id": 74,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 394,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L394"
}
],
"parameters": [
{
"id": 75,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
},
{
"id": 76,
"name": "opts",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 77,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 395,
"character": 10,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L395"
}
],
"indexSignatures": [
{
"id": 78,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 395,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L395"
}
],
"parameters": [
{
"id": 79,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 394,
"name": "RealtimeChannelSendResponse",
"package": "@supabase/realtime-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 334,
"name": "unsubscribe",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 920,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L920"
}
],
"signatures": [
{
"id": 335,
"name": "unsubscribe",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Leaves the channel.\n\nUnsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a "
},
{
"kind": "code",
"text": "`receive`"
},
{
"kind": "text",
"text": " hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )"
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 920,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L920"
}
],
"parameters": [
{
"id": 336,
"name": "timeout",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
},
"defaultValue": "..."
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 394,
"name": "RealtimeChannelSendResponse",
"package": "@supabase/realtime-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 80,
"name": "untrack",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 412,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L412"
}
],
"signatures": [
{
"id": 81,
"name": "untrack",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Removes the current presence state for this client."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 412,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L412"
}
],
"parameters": [
{
"id": 82,
"name": "opts",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 83,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 412,
"character": 22,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L412"
}
],
"indexSignatures": [
{
"id": 84,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 412,
"character": 24,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L412"
}
],
"parameters": [
{
"id": 85,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 394,
"name": "RealtimeChannelSendResponse",
"package": "@supabase/realtime-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 331,
"name": "updateJoinPayload",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 905,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L905"
}
],
"signatures": [
{
"id": 332,
"name": "updateJoinPayload",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Updates the payload that will be sent the next time the channel joins (reconnects).\nUseful for rotating access tokens or updating config without re-creating the channel."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 905,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L905"
}
],
"parameters": [
{
"id": 333,
"name": "payload",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Record"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "any"
}
],
"name": "Record",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"children": [15]
},
{
"title": "Properties",
"children": [20, 22, 39, 24, 23, 40, 21, 38]
},
{
"title": "Accessors",
"children": [30, 34, 36, 26, 32]
},
{
"title": "Methods",
"children": [369, 305, 86, 63, 318, 41, 337, 70, 334, 80, 331]
}
],
"categories": [
{
"title": "Other",
"children": [20, 22, 39, 24, 23, 40, 21, 38, 30, 34, 36, 26, 32, 369]
},
{
"title": "Realtime",
"children": [15, 305, 86, 63, 318, 41, 337, 70, 334, 80, 331]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 174,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L174"
}
]
},
{
"id": 395,
"name": "RealtimeClient",
"variant": "declaration",
"kind": 128,
"flags": {},
"children": [
{
"id": 396,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 213,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L213"
}
],
"signatures": [
{
"id": 397,
"name": "RealtimeClient",
"variant": "signature",
"kind": 16384,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Initializes the Socket."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@example",
"name": "Example for a public channel",
"content": [
{
"kind": "code",
"text": "```ts\nimport RealtimeClient from '@supabase/realtime-js'\n\nconst client = new RealtimeClient('https://xyzcompany.supabase.co/realtime/v1', {\n params: { apikey: 'public-anon-key' },\n})\nclient.connect()\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 213,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L213"
}
],
"parameters": [
{
"id": 398,
"name": "endPoint",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
}
]
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 399,
"name": "options",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": 566,
"name": "RealtimeClientOptions",
"package": "@supabase/realtime-js",
"highlightedProperties": {
"transport": [
{
"kind": "text",
"text": "The Websocket Transport, for example WebSocket. This can be a custom implementation"
}
],
"timeout": [
{
"kind": "text",
"text": "The default timeout in milliseconds to trigger push timeouts."
}
],
"params": [
{
"kind": "text",
"text": "The optional params to pass when connecting."
}
],
"headers": [
{
"kind": "text",
"text": "Deprecated: headers cannot be set on websocket connections and this option will be removed in the future."
}
],
"heartbeatIntervalMs": [
{
"kind": "text",
"text": "The millisec interval to send a heartbeat message."
}
],
"heartbeatCallback": [
{
"kind": "text",
"text": "The optional function to handle heartbeat status and latency."
}
],
"logger": [
{
"kind": "text",
"text": "The optional function for specialized logging, ie: logger: (kind, msg, data) => { console.log("
},
{
"kind": "code",
"text": "`${kind}: ${msg}`"
},
{
"kind": "text",
"text": ", data) }"
}
],
"logLevel": [
{
"kind": "text",
"text": "Sets the log level for Realtime"
}
],
"encode": [
{
"kind": "text",
"text": "The function to encode outgoing messages. Defaults to JSON: (payload, callback) => callback(JSON.stringify(payload))"
}
],
"decode": [
{
"kind": "text",
"text": "The function to decode incoming messages. Defaults to Serializer's decode."
}
],
"reconnectAfterMs": [
{
"kind": "text",
"text": "he optional function that returns the millsec reconnect interval. Defaults to stepped backoff off."
}
],
"worker": [
{
"kind": "text",
"text": "Use Web Worker to set a side flow. Defaults to false."
}
],
"workerUrl": [
{
"kind": "text",
"text": "The URL of the worker script. Defaults to https://realtime.supabase.com/worker.js that includes a heartbeat event call to keep the connection alive."
}
],
"vsn": [
{
"kind": "text",
"text": "The protocol version to use when connecting. Supported versions are \"1.0.0\" and \"2.0.0\". Defaults to \"2.0.0\"."
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 395,
"name": "RealtimeClient",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 403,
"name": "accessToken",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 90,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L90"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 404,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 90,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L90"
}
],
"signatures": [
{
"id": 405,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 90,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L90"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "string"
}
]
}
],
"name": "Promise",
"package": "typescript"
}
}
]
}
}
]
},
"defaultValue": "null"
},
{
"id": 402,
"name": "accessTokenValue",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 89,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L89"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "string"
}
]
},
"defaultValue": "null"
},
{
"id": 406,
"name": "apiKey",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 91,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L91"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "string"
}
]
},
"defaultValue": "null"
},
{
"id": 401,
"name": "channels",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 87,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L87"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
"defaultValue": "..."
},
{
"id": 418,
"name": "fetch",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 102,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L102"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 419,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 29329,
"character": 17
},
{
"fileName": "node_modules/@types/node/globals.d.ts",
"line": 289,
"character": 13
}
],
"signatures": [
{
"id": 420,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)"
}
]
},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 29329,
"character": 17
}
],
"parameters": [
{
"id": 421,
"name": "input",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInfo"
},
"name": "RequestInfo",
"package": "typescript"
}
]
}
},
{
"id": 422,
"name": "init",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInit"
},
"name": "RequestInit",
"package": "typescript"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Response"
},
"name": "Response",
"package": "typescript"
}
],
"name": "Promise",
"package": "typescript"
}
},
{
"id": 423,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)"
}
]
},
"sources": [
{
"fileName": "node_modules/@types/node/globals.d.ts",
"line": 289,
"character": 13
}
],
"parameters": [
{
"id": 424,
"name": "input",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Request"
},
"name": "Request",
"package": "typescript"
}
]
}
},
{
"id": 425,
"name": "init",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInit"
},
"name": "RequestInit",
"package": "typescript"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Response"
},
"name": "Response",
"package": "typescript"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
}
}
},
{
"id": 408,
"name": "headers",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [],
"blockTags": [
{
"tag": "@deprecated",
"content": [
{
"kind": "text",
"text": "headers cannot be set on websocket connections"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 95,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L95"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 409,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 95,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L95"
}
],
"indexSignatures": [
{
"id": 410,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 95,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L95"
}
],
"parameters": [
{
"id": 411,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
]
}
},
"defaultValue": "{}"
},
{
"id": 407,
"name": "httpEndpoint",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 93,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L93"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "''"
},
{
"id": 417,
"name": "logLevel",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L100"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "LogLevel"
},
"name": "LogLevel",
"package": "@supabase/realtime-js"
}
},
{
"id": 412,
"name": "params",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 96,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L96"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 413,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 96,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L96"
}
],
"indexSignatures": [
{
"id": 414,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 96,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L96"
}
],
"parameters": [
{
"id": 415,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
]
}
},
"defaultValue": "{}"
},
{
"id": 416,
"name": "ref",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 98,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L98"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"defaultValue": "0"
},
{
"id": 429,
"name": "serializer",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 107,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L107"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/lib/serializer.ts",
"qualifiedName": "default"
},
"name": "Serializer",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
},
"defaultValue": "..."
},
{
"id": 426,
"name": "worker",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 103,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L103"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 428,
"name": "workerRef",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 105,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L105"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Worker"
},
"name": "Worker",
"package": "typescript"
}
},
{
"id": 427,
"name": "workerUrl",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 104,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L104"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 450,
"name": "decode",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 155,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L155"
}
],
"getSignature": {
"id": 451,
"name": "decode",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 155,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L155"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "Decode"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Decode",
"package": "@supabase/phoenix"
}
}
},
{
"id": 448,
"name": "encode",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 151,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L151"
}
],
"getSignature": {
"id": 449,
"name": "encode",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 151,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L151"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "Encode"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Encode",
"package": "@supabase/phoenix"
}
}
},
{
"id": 430,
"name": "endPoint",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 109,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L109"
}
],
"getSignature": {
"id": 431,
"name": "endPoint",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 109,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L109"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
},
{
"id": 436,
"name": "heartbeatCallback",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 121,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L121"
}
],
"getSignature": {
"id": 437,
"name": "heartbeatCallback",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 121,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L121"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "HeartbeatCallback"
},
"name": "HeartbeatCallback",
"package": "@supabase/phoenix"
}
}
},
{
"id": 438,
"name": "heartbeatIntervalMs",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 125,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L125"
}
],
"getSignature": {
"id": 439,
"name": "heartbeatIntervalMs",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 125,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L125"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
},
{
"id": 440,
"name": "heartbeatTimer",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 129,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L129"
}
],
"getSignature": {
"id": 441,
"name": "heartbeatTimer",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 129,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L129"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "HeartbeatTimer"
},
"name": "HeartbeatTimer",
"package": "@supabase/realtime-js"
}
}
},
{
"id": 442,
"name": "pendingHeartbeatRef",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 136,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L136"
}
],
"getSignature": {
"id": 443,
"name": "pendingHeartbeatRef",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 136,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L136"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "string"
}
]
}
}
},
{
"id": 452,
"name": "reconnectAfterMs",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 159,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L159"
}
],
"getSignature": {
"id": 453,
"name": "reconnectAfterMs",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 159,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L159"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 454,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/phoenix/socketAdapter.ts",
"line": 74,
"character": 26,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/phoenix/socketAdapter.ts#L74"
}
],
"signatures": [
{
"id": 455,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/phoenix/socketAdapter.ts",
"line": 74,
"character": 26,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/phoenix/socketAdapter.ts#L74"
}
],
"parameters": [
{
"id": 456,
"name": "tries",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
]
}
}
}
},
{
"id": 444,
"name": "reconnectTimer",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 143,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L143"
}
],
"getSignature": {
"id": 445,
"name": "reconnectTimer",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 143,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L143"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/timer.js",
"qualifiedName": "default"
},
"name": "Timer",
"package": "@supabase/phoenix",
"qualifiedName": "default"
}
}
},
{
"id": 457,
"name": "sendBuffer",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 163,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L163"
}
],
"getSignature": {
"id": 458,
"name": "sendBuffer",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 163,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L163"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reflection",
"declaration": {
"id": 459,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/phoenix/socketAdapter.ts",
"line": 78,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/phoenix/socketAdapter.ts#L78"
}
],
"signatures": [
{
"id": 460,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/phoenix/socketAdapter.ts",
"line": 78,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/phoenix/socketAdapter.ts#L78"
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
}
}
},
{
"id": 461,
"name": "stateChangeCallbacks",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 167,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L167"
}
],
"getSignature": {
"id": 462,
"name": "stateChangeCallbacks",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 167,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L167"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 463,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 465,
"name": "close",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 169,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L169"
}
],
"type": {
"type": "array",
"elementType": {
"type": "tuple",
"elements": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Function"
},
"name": "Function",
"package": "typescript"
}
]
}
}
},
{
"id": 466,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 170,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L170"
}
],
"type": {
"type": "array",
"elementType": {
"type": "tuple",
"elements": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Function"
},
"name": "Function",
"package": "typescript"
}
]
}
}
},
{
"id": 467,
"name": "message",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 171,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L171"
}
],
"type": {
"type": "array",
"elementType": {
"type": "tuple",
"elements": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Function"
},
"name": "Function",
"package": "typescript"
}
]
}
}
},
{
"id": 464,
"name": "open",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 168,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L168"
}
],
"type": {
"type": "array",
"elementType": {
"type": "tuple",
"elements": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Function"
},
"name": "Function",
"package": "typescript"
}
]
}
}
}
],
"groups": [
{
"title": "Properties",
"children": [465, 466, 467, 464]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 167,
"character": 30,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L167"
}
]
}
}
}
},
{
"id": 432,
"name": "timeout",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 113,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L113"
}
],
"getSignature": {
"id": 433,
"name": "timeout",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 113,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L113"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
},
{
"id": 434,
"name": "transport",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 117,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L117"
}
],
"getSignature": {
"id": 435,
"name": "transport",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 117,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L117"
}
],
"type": {
"type": "reference",
"target": 772,
"name": "WebSocketLikeConstructor",
"package": "@supabase/realtime-js"
}
}
},
{
"id": 446,
"name": "vsn",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 147,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L147"
}
],
"getSignature": {
"id": 447,
"name": "vsn",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 147,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L147"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "Vsn"
},
"name": "Vsn",
"package": "@supabase/phoenix"
}
}
},
{
"id": 500,
"name": "channel",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 408,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L408"
}
],
"signatures": [
{
"id": 501,
"name": "channel",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates (or reuses) a "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "RealtimeChannel",
"target": 10
},
{
"kind": "text",
"text": " for the provided topic.\n\nTopics are automatically prefixed with "
},
{
"kind": "code",
"text": "`realtime:`"
},
{
"kind": "text",
"text": " to match the Realtime service.\nIf a channel with the same topic already exists it will be returned instead of creating\na duplicate connection."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 408,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L408"
}
],
"parameters": [
{
"id": 502,
"name": "topic",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 503,
"name": "params",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 380,
"name": "RealtimeChannelOptions",
"package": "@supabase/realtime-js"
},
"defaultValue": "..."
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 472,
"name": "connect",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 233,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L233"
}
],
"signatures": [
{
"id": 473,
"name": "connect",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Connects the socket, unless already connected."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 233,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L233"
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 492,
"name": "connectionState",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 368,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L368"
}
],
"signatures": [
{
"id": 493,
"name": "connectionState",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns the current state of the socket."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 368,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L368"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/lib/constants.ts",
"qualifiedName": "ConnectionState"
},
"name": "ConnectionState",
"package": "@supabase/realtime-js"
}
}
]
},
{
"id": 476,
"name": "disconnect",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 292,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L292"
}
],
"signatures": [
{
"id": 477,
"name": "disconnect",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Disconnects the socket."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 292,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L292"
}
],
"parameters": [
{
"id": 478,
"name": "code",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "A numeric status code to send on disconnect."
}
]
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 479,
"name": "reason",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "A custom reason for the disconnect."
}
]
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "literal",
"value": "ok"
},
{
"type": "literal",
"value": "timeout"
}
]
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 474,
"name": "endpointURL",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 280,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L280"
}
],
"signatures": [
{
"id": 475,
"name": "endpointURL",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns the URL of the websocket."
}
],
"blockTags": [
{
"tag": "@returns",
"content": [
{
"kind": "text",
"text": "string The URL of the websocket."
}
]
},
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 280,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L280"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
]
},
{
"id": 480,
"name": "getChannels",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 311,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L311"
}
],
"signatures": [
{
"id": 481,
"name": "getChannels",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns all created channels"
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 311,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L311"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
}
]
},
{
"id": 494,
"name": "isConnected",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 377,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L377"
}
],
"signatures": [
{
"id": 495,
"name": "isConnected",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns "
},
{
"kind": "code",
"text": "`true`"
},
{
"kind": "text",
"text": " is the connection is open."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 377,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L377"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
]
},
{
"id": 496,
"name": "isConnecting",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 386,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L386"
}
],
"signatures": [
{
"id": 497,
"name": "isConnecting",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns "
},
{
"kind": "code",
"text": "`true`"
},
{
"kind": "text",
"text": " if the connection is currently connecting."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 386,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L386"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
]
},
{
"id": 498,
"name": "isDisconnecting",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 395,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L395"
}
],
"signatures": [
{
"id": 499,
"name": "isDisconnecting",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns "
},
{
"kind": "code",
"text": "`true`"
},
{
"kind": "text",
"text": " if the connection is currently disconnecting."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 395,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L395"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
]
},
{
"id": 487,
"name": "log",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 359,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L359"
}
],
"signatures": [
{
"id": 488,
"name": "log",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Logs the message.\n\nFor customized logging, "
},
{
"kind": "code",
"text": "`this.logger`"
},
{
"kind": "text",
"text": " can be overridden in Client constructor."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 359,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L359"
}
],
"parameters": [
{
"id": 489,
"name": "kind",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 490,
"name": "msg",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 491,
"name": "data",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 514,
"name": "onHeartbeat",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 488,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L488"
}
],
"signatures": [
{
"id": 515,
"name": "onHeartbeat",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sets a callback that receives lifecycle events for internal heartbeat messages.\nUseful for instrumenting connection health (e.g. sent/ok/timeout/disconnected)."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 488,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L488"
}
],
"parameters": [
{
"id": 516,
"name": "callback",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "HeartbeatCallback"
},
"name": "HeartbeatCallback",
"package": "@supabase/phoenix"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 504,
"name": "push",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 429,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L429"
}
],
"signatures": [
{
"id": 505,
"name": "push",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Push out a message if the socket is connected.\n\nIf the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 429,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L429"
}
],
"parameters": [
{
"id": 506,
"name": "data",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 605,
"name": "RealtimeMessage",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 485,
"name": "removeAllChannels",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 340,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L340"
}
],
"signatures": [
{
"id": 486,
"name": "removeAllChannels",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Unsubscribes, removes and tears down all channels"
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 340,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L340"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "array",
"elementType": {
"type": "reference",
"target": 682,
"name": "RealtimeRemoveChannelResponse",
"package": "@supabase/realtime-js"
}
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 482,
"name": "removeChannel",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 321,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L321"
}
],
"signatures": [
{
"id": 483,
"name": "removeChannel",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Unsubscribes, removes and tears down a single channel"
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 321,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L321"
}
],
"parameters": [
{
"id": 484,
"name": "channel",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "A RealtimeChannel instance"
}
]
},
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 682,
"name": "RealtimeRemoveChannelResponse",
"package": "@supabase/realtime-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 512,
"name": "sendHeartbeat",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 478,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L478"
}
],
"signatures": [
{
"id": 513,
"name": "sendHeartbeat",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sends a heartbeat message if the socket is connected."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 478,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L478"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 507,
"name": "setAuth",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 455,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L455"
}
],
"signatures": [
{
"id": 508,
"name": "setAuth",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sets the JWT access token used for channel subscription authorization and Realtime RLS.\n\nIf param is null it will use the "
},
{
"kind": "code",
"text": "`accessToken`"
},
{
"kind": "text",
"text": " callback function or the token set on the client.\n\nOn callback used, it will set the value of the token internal to the client.\n\nWhen a token is explicitly provided, it will be preserved across channel operations\n(including removeChannel and resubscribe). The "
},
{
"kind": "code",
"text": "`accessToken`"
},
{
"kind": "text",
"text": " callback will not be\ninvoked until "
},
{
"kind": "code",
"text": "`setAuth()`"
},
{
"kind": "text",
"text": " is called without arguments."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nSetting the authorization header\n// Use a manual token (preserved across resubscribes, ignores accessToken callback)\nclient.realtime.setAuth('my-custom-jwt')\n\n// Switch back to using the accessToken callback\nclient.realtime.setAuth()\n```"
}
]
},
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 455,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L455"
}
],
"parameters": [
{
"id": 509,
"name": "token",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "A JWT string to override the token set on the client."
}
]
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "string"
}
]
},
"defaultValue": "null"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"children": [396]
},
{
"title": "Properties",
"children": [403, 402, 406, 401, 418, 408, 407, 417, 412, 416, 429, 426, 428, 427]
},
{
"title": "Accessors",
"children": [450, 448, 430, 436, 438, 440, 442, 452, 444, 457, 461, 432, 434, 446]
},
{
"title": "Methods",
"children": [
500, 472, 492, 476, 474, 480, 494, 496, 498, 487, 514, 504, 485, 482, 512, 507
]
}
],
"categories": [
{
"title": "Other",
"children": [
403, 402, 406, 401, 418, 408, 407, 417, 412, 416, 429, 426, 428, 427, 450, 448, 430,
436, 438, 440, 442, 452, 444, 457, 461, 432, 434, 446
]
},
{
"title": "Realtime",
"children": [
396, 500, 472, 492, 476, 474, 480, 494, 496, 498, 487, 514, 504, 485, 482, 512, 507
]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 84,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L84"
}
]
},
{
"id": 1,
"name": "RealtimePresence",
"variant": "declaration",
"kind": 128,
"flags": {},
"children": [
{
"id": 2,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 65,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L65"
}
],
"signatures": [
{
"id": 3,
"name": "RealtimePresence",
"variant": "signature",
"kind": 16384,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates a Presence helper that keeps the local presence state in sync with the server."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@example",
"name": "Example for a presence channel",
"content": [
{
"kind": "code",
"text": "```ts\nconst presence = new RealtimePresence(channel)\n\nchannel.on('presence', ({ event, key }) => {\n console.log(`Presence ${event} on ${key}`)\n})\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 65,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L65"
}
],
"parameters": [
{
"id": 4,
"name": "channel",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The realtime channel to bind to."
}
]
},
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 5,
"name": "opts",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Optional custom event names, e.g. "
},
{
"kind": "code",
"text": "`{ events: { state: 'state', diff: 'diff' } }`"
},
{
"kind": "text",
"text": "."
}
]
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "RealtimePresenceOptions"
},
"name": "RealtimePresenceOptions",
"package": "@supabase/realtime-js"
}
}
],
"type": {
"type": "reference",
"target": 1,
"name": "RealtimePresence",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 9,
"name": "channel",
"variant": "declaration",
"kind": 1024,
"flags": {
"isPublic": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "The realtime channel to bind to."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 66,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L66"
}
],
"type": {
"type": "reference",
"target": 10,
"name": "RealtimeChannel",
"package": "@supabase/realtime-js",
"qualifiedName": "default"
}
},
{
"id": 6,
"name": "state",
"variant": "declaration",
"kind": 262144,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 42,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L42"
}
],
"getSignature": {
"id": 7,
"name": "state",
"variant": "signature",
"kind": 524288,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 42,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L42"
}
],
"type": {
"type": "reference",
"target": 673,
"name": "RealtimePresenceState",
"package": "@supabase/realtime-js"
}
}
}
],
"groups": [
{
"title": "Constructors",
"children": [2]
},
{
"title": "Properties",
"children": [9]
},
{
"title": "Accessors",
"children": [6]
}
],
"categories": [
{
"title": "Other",
"children": [9, 6]
},
{
"title": "Realtime",
"children": [2]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 41,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L41"
}
]
},
{
"id": 709,
"name": "WebSocketFactory",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Utilities for creating WebSocket instances across runtimes."
}
]
},
"children": [
{
"id": 712,
"name": "getWebSocketConstructor",
"variant": "declaration",
"kind": 2048,
"flags": {
"isPublic": true,
"isStatic": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 153,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L153"
}
],
"signatures": [
{
"id": 713,
"name": "getWebSocketConstructor",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Returns the best available WebSocket constructor for the current runtime."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@example",
"name": "Example with error handling",
"content": [
{
"kind": "code",
"text": "```ts\ntry {\n const WS = WebSocketFactory.getWebSocketConstructor()\n const socket = new WS('wss://example.com/socket')\n} catch (error) {\n console.error('WebSocket not available in this environment.', error)\n}\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 153,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L153"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 714,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 26772,
"character": 23
}
],
"signatures": [
{
"id": 715,
"name": "getWebSocketConstructor",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 26774,
"character": 4
}
],
"parameters": [
{
"id": 716,
"name": "url",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
}
]
}
},
{
"id": 717,
"name": "protocols",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
]
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "WebSocket"
},
"name": "WebSocket",
"package": "typescript"
}
}
]
}
}
}
]
},
{
"id": 718,
"name": "isWebSocketSupported",
"variant": "declaration",
"kind": 2048,
"flags": {
"isPublic": true,
"isStatic": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 178,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L178"
}
],
"signatures": [
{
"id": 719,
"name": "isWebSocketSupported",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Detects whether the runtime can establish WebSocket connections."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Realtime"
}
]
},
{
"tag": "@example",
"name": "Example in a Node.js script",
"content": [
{
"kind": "code",
"text": "```ts\nif (!WebSocketFactory.isWebSocketSupported()) {\n console.error('WebSockets are required for this script.')\n process.exitCode = 1\n}\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 178,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L178"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
]
}
],
"groups": [
{
"title": "Methods",
"children": [712, 718]
}
],
"categories": [
{
"title": "Realtime",
"children": [712, 718]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 50,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L50"
}
]
},
{
"id": 722,
"name": "WebSocketLike",
"variant": "declaration",
"kind": 256,
"flags": {},
"children": [
{
"id": 765,
"name": "binaryType",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 34,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L34"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 766,
"name": "bufferedAmount",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 35,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L35"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 726,
"name": "CLOSED",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 5,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L5"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 725,
"name": "CLOSING",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 4,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L4"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 723,
"name": "CONNECTING",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 2,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L2"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 768,
"name": "dispatchEvent",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 37,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L37"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 769,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 37,
"character": 18,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L37"
}
],
"signatures": [
{
"id": 770,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 37,
"character": 18,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L37"
}
],
"parameters": [
{
"id": 771,
"name": "event",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Event"
},
"name": "Event",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
]
}
}
},
{
"id": 767,
"name": "extensions",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 36,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L36"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 747,
"name": "onclose",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 748,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 21,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L21"
}
],
"signatures": [
{
"id": 749,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 21,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L21"
}
],
"parameters": [
{
"id": 750,
"name": "this",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 751,
"name": "ev",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "CloseEvent"
},
"name": "CloseEvent",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
]
}
},
{
"id": 752,
"name": "onerror",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 22,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L22"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 753,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 22,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L22"
}
],
"signatures": [
{
"id": 754,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 22,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L22"
}
],
"parameters": [
{
"id": 755,
"name": "this",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 756,
"name": "ev",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Event"
},
"name": "Event",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
]
}
},
{
"id": 742,
"name": "onmessage",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 20,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L20"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 743,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 20,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L20"
}
],
"signatures": [
{
"id": 744,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 20,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L20"
}
],
"parameters": [
{
"id": 745,
"name": "this",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 746,
"name": "ev",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "MessageEvent"
},
"name": "MessageEvent",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
]
}
},
{
"id": 737,
"name": "onopen",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 19,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L19"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 738,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 19,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L19"
}
],
"signatures": [
{
"id": 739,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 19,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L19"
}
],
"parameters": [
{
"id": 740,
"name": "this",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 741,
"name": "ev",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Event"
},
"name": "Event",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
]
}
},
{
"id": 724,
"name": "OPEN",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 3,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L3"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 729,
"name": "protocol",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 8,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L8"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 727,
"name": "readyState",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 6,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L6"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 728,
"name": "url",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 7,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L7"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 757,
"name": "addEventListener",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 27,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L27"
}
],
"signatures": [
{
"id": 758,
"name": "addEventListener",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Registers an event listener on the socket (compatible with browser WebSocket API)."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 27,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L27"
}
],
"parameters": [
{
"id": 759,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 760,
"name": "listener",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "EventListener"
},
"name": "EventListener",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 730,
"name": "close",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 13,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L13"
}
],
"signatures": [
{
"id": 731,
"name": "close",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Closes the socket, optionally providing a close code and reason."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 13,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L13"
}
],
"parameters": [
{
"id": 732,
"name": "code",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 733,
"name": "reason",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 761,
"name": "removeEventListener",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 31,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L31"
}
],
"signatures": [
{
"id": 762,
"name": "removeEventListener",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Removes a previously registered event listener."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 31,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L31"
}
],
"parameters": [
{
"id": 763,
"name": "type",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 764,
"name": "listener",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "EventListener"
},
"name": "EventListener",
"package": "typescript"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
},
{
"id": 734,
"name": "send",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 17,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L17"
}
],
"signatures": [
{
"id": 735,
"name": "send",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Sends data through the socket using the underlying implementation."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 17,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L17"
}
],
"parameters": [
{
"id": 736,
"name": "data",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "ArrayBufferLike"
},
"name": "ArrayBufferLike",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Blob"
},
"name": "Blob",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "ArrayBufferView"
},
"typeArguments": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "ArrayBufferLike"
},
"name": "ArrayBufferLike",
"package": "typescript"
}
],
"name": "ArrayBufferView",
"package": "typescript"
}
]
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
],
"groups": [
{
"title": "Properties",
"children": [765, 766, 726, 725, 723, 768, 767, 747, 752, 742, 737, 724, 729, 727, 728]
},
{
"title": "Methods",
"children": [757, 730, 761, 734]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/websocket-factory.ts",
"line": 1,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/websocket-factory.ts#L1"
}
]
},
{
"id": 772,
"name": "WebSocketLikeConstructor",
"variant": "declaration",
"kind": 256,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Minimal WebSocket constructor interface that RealtimeClient can work with.\nSupply a compatible implementation (native WebSocket, "
},
{
"kind": "code",
"text": "`ws`"
},
{
"kind": "text",
"text": ", etc) when running outside the browser."
}
]
},
"children": [
{
"id": 773,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 50,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L50"
}
],
"signatures": [
{
"id": 774,
"name": "WebSocketLikeConstructor",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 51,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L51"
}
],
"parameters": [
{
"id": 775,
"name": "address",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
}
]
}
},
{
"id": 776,
"name": "subprotocols",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
]
}
}
],
"type": {
"type": "reference",
"target": 722,
"name": "WebSocketLike",
"package": "@supabase/realtime-js"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"children": [773]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 50,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L50"
}
],
"indexSignatures": [
{
"id": 777,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 53,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L53"
}
],
"parameters": [
{
"id": 778,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
},
{
"id": 380,
"name": "RealtimeChannelOptions",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 20,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L20"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 381,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 382,
"name": "config",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L21"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 383,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 384,
"name": "broadcast",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received\nreplay option instructs server to replay broadcast messages"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 27,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L27"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 385,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 387,
"name": "ack",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 27,
"character": 34,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L27"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 388,
"name": "replay",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 27,
"character": 49,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L27"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "ReplayOption"
},
"name": "ReplayOption",
"package": "@supabase/realtime-js"
}
},
{
"id": 386,
"name": "self",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 27,
"character": 18,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L27"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"children": [387, 388, 386]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 27,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L27"
}
]
}
}
},
{
"id": 389,
"name": "presence",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "key option is used to track presence payload across clients"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 31,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L31"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 390,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 392,
"name": "enabled",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 31,
"character": 31,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L31"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 391,
"name": "key",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 31,
"character": 17,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L31"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [392, 391]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 31,
"character": 15,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L31"
}
]
}
}
},
{
"id": 393,
"name": "private",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "defines if the channel is private or not and if RLS policies will be used to check data"
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 35,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L35"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"children": [384, 389, 393]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 21,
"character": 10,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L21"
}
]
}
}
}
],
"groups": [
{
"title": "Properties",
"children": [382]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 20,
"character": 37,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L20"
}
]
}
}
},
{
"id": 394,
"name": "RealtimeChannelSendResponse",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 126,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L126"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "ok"
},
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
},
{
"id": 566,
"name": "RealtimeClientOptions",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 56,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L56"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 567,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 602,
"name": "accessToken",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 74,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L74"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 603,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 74,
"character": 16,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L74"
}
],
"signatures": [
{
"id": 604,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "literal",
"value": null
}
]
}
],
"name": "Promise",
"package": "typescript"
}
}
]
}
}
},
{
"id": 584,
"name": "decode",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 64,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L64"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "Decode"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Decode",
"package": "@supabase/phoenix"
}
},
{
"id": 583,
"name": "encode",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 63,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L63"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/@supabase/phoenix/assets/js/phoenix/types.js",
"qualifiedName": "Encode"
},
"typeArguments": [
{
"type": "intrinsic",
"name": "void"
}
],
"name": "Encode",
"package": "@supabase/phoenix"
}
},
{
"id": 599,
"name": "fetch",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 71,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L71"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "Fetch"
},
"name": "Fetch",
"package": "@supabase/realtime-js"
}
},
{
"id": 589,
"name": "headers",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 66,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L66"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 590,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 66,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L66"
}
],
"indexSignatures": [
{
"id": 591,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 66,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L66"
}
],
"parameters": [
{
"id": 592,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
]
}
}
},
{
"id": 571,
"name": "heartbeatCallback",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 60,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L60"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 572,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 60,
"character": 22,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L60"
}
],
"signatures": [
{
"id": 573,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"parameters": [
{
"id": 574,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "HeartbeatStatus"
},
"name": "HeartbeatStatus",
"package": "@supabase/realtime-js"
}
},
{
"id": 575,
"name": "latency",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
},
{
"id": 570,
"name": "heartbeatIntervalMs",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 59,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L59"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 597,
"name": "log_level",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 69,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L69"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "LogLevel"
},
"name": "LogLevel",
"package": "@supabase/realtime-js"
}
},
{
"id": 577,
"name": "logger",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 62,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L62"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 578,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 62,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L62"
}
],
"signatures": [
{
"id": 579,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"parameters": [
{
"id": 580,
"name": "kind",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 581,
"name": "msg",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 582,
"name": "data",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "intrinsic",
"name": "void"
}
}
]
}
}
},
{
"id": 598,
"name": "logLevel",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 70,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L70"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeClient.ts",
"qualifiedName": "LogLevel"
},
"name": "LogLevel",
"package": "@supabase/realtime-js"
}
},
{
"id": 593,
"name": "params",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 67,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L67"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 594,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 67,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L67"
}
],
"indexSignatures": [
{
"id": 595,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 67,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L67"
}
],
"parameters": [
{
"id": 596,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
},
{
"id": 585,
"name": "reconnectAfterMs",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 65,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L65"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 586,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 65,
"character": 21,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L65"
}
],
"signatures": [
{
"id": 587,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"parameters": [
{
"id": 588,
"name": "tries",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
}
]
}
}
},
{
"id": 569,
"name": "timeout",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 58,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L58"
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 568,
"name": "transport",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 57,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L57"
}
],
"type": {
"type": "reference",
"target": 772,
"name": "WebSocketLikeConstructor",
"package": "@supabase/realtime-js"
}
},
{
"id": 576,
"name": "vsn",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 61,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L61"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 600,
"name": "worker",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 72,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L72"
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 601,
"name": "workerUrl",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 73,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L73"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [
602, 584, 583, 599, 589, 571, 570, 597, 577, 598, 593, 585, 569, 568, 576, 600, 601
]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 56,
"character": 36,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L56"
}
]
}
}
},
{
"id": 605,
"name": "RealtimeMessage",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 24,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L24"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 606,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 608,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 26,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L26"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 611,
"name": "join_ref",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 29,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L29"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 609,
"name": "payload",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 27,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L27"
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 610,
"name": "ref",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 28,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L28"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 607,
"name": "topic",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 25,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L25"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [608, 611, 609, 610, 607]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 24,
"character": 30,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L24"
}
]
}
}
},
{
"id": 612,
"name": "RealtimePostgresChangesFilter",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 107,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L107"
}
],
"typeParameters": [
{
"id": 618,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 688,
"name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",
"package": "@supabase/realtime-js"
},
""
]
]
}
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 613,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 614,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The type of database change to listen to."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 111,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L111"
}
],
"type": {
"type": "reference",
"target": 618,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
},
{
"id": 617,
"name": "filter",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Receive database changes when filter is matched."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 123,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L123"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 615,
"name": "schema",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The database schema to listen to."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 115,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L115"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 616,
"name": "table",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "The database table to listen to."
}
]
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 119,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L119"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [614, 617, 615, 616]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 107,
"character": 99,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L107"
}
]
}
}
},
{
"id": 619,
"name": "RealtimePostgresChangesPayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 102,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L102"
}
],
"typeParameters": [
{
"id": 620,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 621,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 102,
"character": 53,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L102"
}
],
"indexSignatures": [
{
"id": 622,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 102,
"character": 55,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L102"
}
],
"parameters": [
{
"id": 623,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"target": 624,
"typeArguments": [
{
"type": "reference",
"target": 620,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresInsertPayload",
"package": "@supabase/realtime-js"
},
{
"type": "reference",
"target": 634,
"typeArguments": [
{
"type": "reference",
"target": 620,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresUpdatePayload",
"package": "@supabase/realtime-js"
},
{
"type": "reference",
"target": 643,
"typeArguments": [
{
"type": "reference",
"target": 620,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "RealtimePostgresDeletePayload",
"package": "@supabase/realtime-js"
}
]
}
},
{
"id": 643,
"name": "RealtimePostgresDeletePayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 95,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L95"
}
],
"typeParameters": [
{
"id": 649,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 650,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 95,
"character": 52,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L95"
}
],
"indexSignatures": [
{
"id": 651,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 95,
"character": 54,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L95"
}
],
"parameters": [
{
"id": 652,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimePostgresChangesPayloadBase"
},
"name": "RealtimePostgresChangesPayloadBase",
"package": "@supabase/realtime-js"
},
{
"type": "reflection",
"declaration": {
"id": 644,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 645,
"name": "eventType",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 97,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L97"
}
],
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 692,
"name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE",
"package": "@supabase/realtime-js"
},
""
]
]
}
},
{
"id": 646,
"name": "new",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 98,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L98"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 647,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 98,
"character": 9,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L98"
}
]
}
}
},
{
"id": 648,
"name": "old",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 99,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L99"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Partial"
},
"typeArguments": [
{
"type": "reference",
"target": 649,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Partial",
"package": "typescript"
}
}
],
"groups": [
{
"title": "Properties",
"children": [645, 646, 648]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 96,
"character": 39,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L96"
}
]
}
}
]
}
},
{
"id": 624,
"name": "RealtimePostgresInsertPayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 81,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L81"
}
],
"typeParameters": [
{
"id": 630,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 631,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 81,
"character": 52,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L81"
}
],
"indexSignatures": [
{
"id": 632,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 81,
"character": 54,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L81"
}
],
"parameters": [
{
"id": 633,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimePostgresChangesPayloadBase"
},
"name": "RealtimePostgresChangesPayloadBase",
"package": "@supabase/realtime-js"
},
{
"type": "reflection",
"declaration": {
"id": 625,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 626,
"name": "eventType",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 83,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L83"
}
],
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 690,
"name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT",
"package": "@supabase/realtime-js"
},
""
]
]
}
},
{
"id": 627,
"name": "new",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 84,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L84"
}
],
"type": {
"type": "reference",
"target": 630,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
},
{
"id": 628,
"name": "old",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 85,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L85"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 629,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 85,
"character": 9,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L85"
}
]
}
}
}
],
"groups": [
{
"title": "Properties",
"children": [626, 627, 628]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 82,
"character": 39,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L82"
}
]
}
}
]
}
},
{
"id": 634,
"name": "RealtimePostgresUpdatePayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 88,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L88"
}
],
"typeParameters": [
{
"id": 639,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 640,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 88,
"character": 52,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L88"
}
],
"indexSignatures": [
{
"id": 641,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 88,
"character": 54,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L88"
}
],
"parameters": [
{
"id": 642,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"target": {
"sourceFileName": "src/RealtimeChannel.ts",
"qualifiedName": "RealtimePostgresChangesPayloadBase"
},
"name": "RealtimePostgresChangesPayloadBase",
"package": "@supabase/realtime-js"
},
{
"type": "reflection",
"declaration": {
"id": 635,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 636,
"name": "eventType",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 90,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L90"
}
],
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 691,
"name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE",
"package": "@supabase/realtime-js"
},
""
]
]
}
},
{
"id": 637,
"name": "new",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 91,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L91"
}
],
"type": {
"type": "reference",
"target": 639,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
},
{
"id": 638,
"name": "old",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 92,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L92"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Partial"
},
"typeArguments": [
{
"type": "reference",
"target": 639,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Partial",
"package": "typescript"
}
}
],
"groups": [
{
"title": "Properties",
"children": [636, 637, 638]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 89,
"character": 39,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L89"
}
]
}
}
]
}
},
{
"id": 653,
"name": "RealtimePresenceJoinPayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 17,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L17"
}
],
"typeParameters": [
{
"id": 659,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 660,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 17,
"character": 50,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L17"
}
],
"indexSignatures": [
{
"id": 661,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 17,
"character": 52,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L17"
}
],
"parameters": [
{
"id": 662,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 654,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 657,
"name": "currentPresences",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 20,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L20"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "Presence"
},
"typeArguments": [
{
"type": "reference",
"target": 659,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Presence",
"package": "@supabase/realtime-js"
}
}
},
{
"id": 655,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 18,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L18"
}
],
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 695,
"name": "REALTIME_PRESENCE_LISTEN_EVENTS.JOIN",
"package": "@supabase/realtime-js"
},
""
]
]
}
},
{
"id": 656,
"name": "key",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 19,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L19"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 658,
"name": "newPresences",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L21"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "Presence"
},
"typeArguments": [
{
"type": "reference",
"target": 659,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Presence",
"package": "@supabase/realtime-js"
}
}
}
],
"groups": [
{
"title": "Properties",
"children": [657, 655, 656, 658]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 17,
"character": 76,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L17"
}
]
}
}
},
{
"id": 663,
"name": "RealtimePresenceLeavePayload",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 24,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L24"
}
],
"typeParameters": [
{
"id": 669,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 670,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 24,
"character": 51,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L24"
}
],
"indexSignatures": [
{
"id": 671,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 24,
"character": 53,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L24"
}
],
"parameters": [
{
"id": 672,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
}
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 664,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 667,
"name": "currentPresences",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 27,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L27"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "Presence"
},
"typeArguments": [
{
"type": "reference",
"target": 669,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Presence",
"package": "@supabase/realtime-js"
}
}
},
{
"id": 665,
"name": "event",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 25,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L25"
}
],
"type": {
"type": "templateLiteral",
"head": "",
"tail": [
[
{
"type": "reference",
"target": 696,
"name": "REALTIME_PRESENCE_LISTEN_EVENTS.LEAVE",
"package": "@supabase/realtime-js"
},
""
]
]
}
},
{
"id": 666,
"name": "key",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 26,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L26"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 668,
"name": "leftPresences",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 28,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L28"
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "Presence"
},
"typeArguments": [
{
"type": "reference",
"target": 669,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Presence",
"package": "@supabase/realtime-js"
}
}
}
],
"groups": [
{
"title": "Properties",
"children": [667, 665, 666, 668]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 24,
"character": 77,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L24"
}
]
}
}
},
{
"id": 673,
"name": "RealtimePresenceState",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 13,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L13"
}
],
"typeParameters": [
{
"id": 677,
"name": "T",
"variant": "typeParam",
"kind": 131072,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 678,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 13,
"character": 44,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L13"
}
],
"indexSignatures": [
{
"id": 679,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 13,
"character": 46,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L13"
}
],
"parameters": [
{
"id": 680,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
}
]
}
},
"default": {
"type": "reflection",
"declaration": {
"id": 681,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 13,
"character": 69,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L13"
}
]
}
}
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 674,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 13,
"character": 75,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L13"
}
],
"indexSignatures": [
{
"id": 675,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimePresence.ts",
"line": 14,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimePresence.ts#L14"
}
],
"parameters": [
{
"id": 676,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "array",
"elementType": {
"type": "reference",
"target": {
"sourceFileName": "src/RealtimePresence.ts",
"qualifiedName": "Presence"
},
"typeArguments": [
{
"type": "reference",
"target": 677,
"name": "T",
"package": "@supabase/realtime-js",
"refersToTypeParameter": true
}
],
"name": "Presence",
"package": "@supabase/realtime-js"
}
}
}
]
}
}
},
{
"id": 682,
"name": "RealtimeRemoveChannelResponse",
"variant": "declaration",
"kind": 2097152,
"flags": {},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeClient.ts",
"line": 32,
"character": 12,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeClient.ts#L32"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "ok"
},
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
},
{
"id": 702,
"name": "REALTIME_CHANNEL_STATES",
"variant": "declaration",
"kind": 32,
"flags": {
"isConst": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/RealtimeChannel.ts",
"line": 149,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/RealtimeChannel.ts#L149"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 703,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 704,
"name": "closed",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 33,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L33"
}
],
"type": {
"type": "literal",
"value": "closed"
},
"defaultValue": "'closed'"
},
{
"id": 705,
"name": "errored",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 34,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L34"
}
],
"type": {
"type": "literal",
"value": "errored"
},
"defaultValue": "'errored'"
},
{
"id": 706,
"name": "joined",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 35,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L35"
}
],
"type": {
"type": "literal",
"value": "joined"
},
"defaultValue": "'joined'"
},
{
"id": 707,
"name": "joining",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 36,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L36"
}
],
"type": {
"type": "literal",
"value": "joining"
},
"defaultValue": "'joining'"
},
{
"id": 708,
"name": "leaving",
"variant": "declaration",
"kind": 1024,
"flags": {
"isReadonly": true
},
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 37,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L37"
}
],
"type": {
"type": "literal",
"value": "leaving"
},
"defaultValue": "'leaving'"
}
],
"groups": [
{
"title": "Properties",
"children": [704, 705, 706, 707, 708]
}
],
"sources": [
{
"fileName": "packages/core/realtime-js/src/lib/constants.ts",
"line": 32,
"character": 30,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/realtime-js/src/lib/constants.ts#L32"
}
]
}
},
"defaultValue": "CHANNEL_STATES"
}
],
"groups": [
{
"title": "Enumerations",
"children": [683, 688, 693, 697]
},
{
"title": "Classes",
"children": [10, 395, 1, 709]
},
{
"title": "Interfaces",
"children": [722, 772]
},
{
"title": "Type Aliases",
"children": [380, 394, 566, 605, 612, 619, 643, 624, 634, 653, 663, 673, 682]
},
{
"title": "Variables",
"children": [702]
}
],
"packageName": "@supabase/realtime-js",
"readme": [
{
"kind": "text",
"text": "
\n
\n \n
\n
\n Guides\n ·\n Reference Docs\n ·\n Multiplayer Demo\n
\n\n\n