To use the Realtime API, install the @wix/realtime package.
Follow the installation instructions for your development environment.
| Development environment | Installation method |
|---|---|
| Wix sites (editor or IDE) | Use the package manager. |
| Wix sites (local IDE) | Run wix install @wix/realtime using the Wix CLI. |
To import the package in your code: