Advanced
Connection String

connection string

The connection string is the bridge between your server and y-sweet. You can think of it as an API key and auth combined.

💡

Note that the connection string should be treated as a secret and should never sent to the client.

In Development

In the y-sweet dashboard (opens in a new tab), we give you a Quickstart connection string that is meant for development use.

In Production

When your app is ready for production, create a project through the Y-Sweet dashboard. Projects act as a namespace for documents. Each project can have multiple active connection strings, allowing for downtime-free secret rotation.

You should pass the connection string to your application the same way you would pass a database password. Normally, this means setting it as a secret or environment variable in Vercel or another hosting provider.

y-sweet was created by Jamsocket.