Choose an edge
Pick the edge closest to your devices. A connection is held at the edge, so a nearby edge means lower latency and fewer dropped connections on mobile networks.
Each domain has its own edge, so one project can serve European devices on
ws.example.com from Europe and Nigerian ones on ng.example.com from Lagos.
Turn it on
1
Open Persistent connections
Open the project, then Networking > Persistent connections > Settings.
2
Switch it on
Turn on Persistent connections. This also turns on WebSockets for the project.
3
Add a domain
Add the custom domain your devices connect to, such as
ws.example.com. You can pick a domain the project already has, add a new one, or type a subdomain of a domain you bought on Pxxl.4
Pick its edge
Choose Europe or Lagos, review, and save.
5
Set DNS if asked
Depending on where the domain’s DNS is, Pxxl either updates it for you or shows one record to set. See below.
DNS for each kind of domain
For a domain at your own DNS provider, set:
Connections stay on the old edge until DNS points at the new one, so the switch is gradual and safe.
Connect from a device
Nothing changes in your app. Keep serving WebSockets on its port, and connect to the domain overwss://:
Usage and history
Pxxl emails you when open connections reach 80% and 100% of your allowance. Past the allowance plus 10%, new connections are refused until some close or you add more.
Turn it off
Turn off Persistent connections and the chosen domains go back to the standard edge. WebSockets keep working there, but connections close on deploys and platform updates.Where to go next
Project networking
WebSockets, security and access rules.
Connect a domain
Add the domain your devices use.

