Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

client.tsx

10 lines289 Bytes

1import { initClientNavigation } from 'rwsdk/client'
2import { initRealtimeClient } from 'rwsdk/realtime/client'
3​
4const { handleResponse } = initClientNavigation()
5​
6// Initialize realtime client with pathname as key
7initRealtimeClient({
8 key: window.location.pathname,
9 handleResponse,
10})