feat(studio): use version 2.0.0 serializer on Realtime for inspector (#40636)

Also change label for realtime payloads: s/metadata/payload
This commit is contained in:
Eduardo Gurgel
2025-11-21 10:16:23 +13:00
committed by GitHub
parent 88c5e7cbd4
commit 49e4e503d9
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ export const SelectedRealtimeMessagePanel = ({ log }: { log: LogData }) => {
</div>
<LogsDivider />
<div className="px-8">
<h3 className="mb-4 text-sm text-foreground-lighter">Metadata</h3>
<h3 className="mb-4 text-sm text-foreground-lighter">Payload</h3>
<pre className="syntax-highlight overflow-x-auto text-sm">
<div
className="text-wrap"

View File

@@ -104,6 +104,7 @@ export const useRealtimeMessages = (
const realtimeOptions = merge(DEFAULT_REALTIME_OPTIONS, { params: { log_level: logLevel } })
const options = {
vsn: '2.0.0',
headers: DEFAULT_GLOBAL_OPTIONS.headers,
...realtimeOptions,
params: { apikey: token, ...realtimeOptions.params },