Configure the React SDK
If you're using AirState Cloud
Get your appKey
from console.airstate.dev
import { configure } from '@airstate/client';
configure({
appKey: '[your app key]',
});
It is recommended to call this before you use the hooks exported from this package.
If you're self-hosting
import { configure } from '@airstate/client';
configure({
server: 'wss://[your-server-domain]:[port-if-any]/ws',
});
Unless configured to be otherwise, the URL pattern is typically in the format above.