PieSocket Channels
PieSocket
PieSocket (formerly called Channels) is realtime PubSub SDK - its also provides WebRTC video features.
PieSocket is available for Web, Mobile and IoT. See the client-side section to get a list of all available SDKs and their documentation. If an SDK is not listed for the platform you are using, you should use the WebSocket Server API with a WebSocket client of your choice.
Features
- Subscribe to events on client side
- Publish events from server
- Publish events from client with client-to-client messaging feature.
Frequently Asked Questions
What are concurrent connections?
It is the total number channel connections using your API keys. Your concurrent connection limit is the peak number of connections allowed at any given time.
How are messages counted?
A message is counted as number of messages delivered. Let's assume, there are 100 peers connected to your channel and one of them sends a message, it will be counted as 100 messages (99 if notifySelf is disabled).
Webhook deliveries are also counted as a (single) message.
What are autosclaing charges?
Channels are autoscable, it costs $2 per million messages and $10 per thousand connections. If autoscaling is disabled, extra connections/messages will be droppped.
How are auto-scaling charges calculated?
For messages: its straight forward, $2/million messages sent after the daily quota is used.
For number of connections: you are charged in batch of 1000 connections, based on peak connection count for the day.
Example: If your peak connection count is 900 more than the allowed quota for 5 minutes during the day, you will be charged $10 (cost of 1000 extra connections).
What happens if I exceed my daily message quota?
With auto-scaling enabled, you will be charged for all extra messages sent over your plan's daily limit. To help you stay alert, we send out daily usage alerts every mid-night (UTC time). If you have auto-scaling disabled for your API key, post quota-exhaustion the server will refuse all connections.
What happens if I reach my concurrent connections limit?
Same as messages, with auto-scaling enabled the cluster will accept extra connections beyond your quota. Additional charges will apply. If autoscaling is disabled, extra connections will be droppped.
Why chose a bigger cluster-size when I can enable autoscaling?
Paying fixed price upfront for the resource usage results in cost-saving over auto-scaling.
Premium Features
Production Essentials
Available: To all paid clusters.
Following features are available under Production Essentials.
- Auto-scaling - prevents down-time due to unexpected high traffic.
- Webhooks - get POST request notification, when a message/event is sent on WebSocket channel.
Pro Features
Available: To all clusters costing $99/month or more.
Following perks are available under Pro Features.
- Forced authentication
- Origin Whitelisting
- No-log policy
- SLA
Business Features
Available: To all clusters costing $499/month or more.
Following perks are available under Business Features.
- All Pro features.
- Custom domain.
- Higher SLA
- 24x7 support over Whatsapp.
On this page
