As we all know that original Soketi project was not getting much of attention, i have been using Soketi heavily throughout my projects & i wanted to contribute to the community so that they can also utilize the latest improvements in Soketi. As of now i have upgraded the core of Soketi from uWebSocket 20.10 to 20.43 which is the last release upto today (14/03/2024).
I have added Subscription Count for all channel types and now WebHook will tell you about a channels subscribed user counts.
Node is now upgraded to latest and in future releases we will stop using PM2 (actually in my builds i dont even now, but some user prefer it so its present.)
More changes will be coming soon.
For saving your time, i have compiled and created a Docker image which is available at (https://hub.docker.com/r/ehsanr91/soketi-reborn)
You can use docker pull ehsanr91/soketi-reborn to pull the image.
soketi: image: soketi-reborn:distrolessv4 ports: - 6001:6001 - 9601:9601 environment: - SOKETI_DEBUG='-1' - DEFAULT_APP_ID='YOUR_APP_ID' - DEFAULT_APP_KEY='YOUR_APP_KEY' - DEFAULT_APP_SECRET='YOUR_APP_SECRET' - PUSHER_HOST='127.0.0.1' - PUSHER_PORT= '6001' - PUSHER_SCHEME='http' - METRICS_SERVER_PORT=9601 - DEFAULT_APP_ENABLE_CLIENT_MESSAGES=false - METRICS_ENABLED= 1 - SOKETI_CACHE_DRIVER=memory - HOME=/app/ volumes: - ./config.json:/app/config.json command: ["/app/bin/server.js", "start", "--config=/app/config.json"] restart: unless-stopped
Alternatively you can modify the config.json file which actually loads the configuration, and Soketi will work with those configurations.
Ever dreamed about Serverless WebSockets? Soketi can be deployed to Cloudflare Workers. All around the world, closer to your users. Same Pusher protocol. Powered by Cloudflare's Durable Objects and KV, you can achieve great speeds at edge for your users.
Deploy fast Workers, use one of the fastest database available from Cloudflare and scale to infinity and beyond. π
Start deploying Workers β‘οΈ
soketi is your simple, fast, and resilient open-source WebSockets server. π£
The server is built on top of uWebSockets.js - a C application ported to Node.js. uWebSockets.js is demonstrated to perform at levels 8.5x that of Fastify and at least 10x that of Socket.IO. (source)
Compared with Pusher, you can achieve much more for less than one-third of the price.
For a $49 plan on Pusher, you get a limited amount of connections (500) and messages (30M).
With Soketi, for the price of an instance on Vultr or DigitalOcean ($5-$10), you get virtually unlimited connections, messages, and some more!
Soketi is capable to hold thousands of active connections with high traffic on less than 1 GB and 1 CPU in the cloud. You can also get free $100 on Vultr to try out soketi β
Whether you run your infrastructure in containers or monoliths, soketi got your back. There are multiple ways to install and configure soketi, from single instances for development, to tens of active instances at scale with hundreds or thousands of active users.
soketi implements the Pusher Protocol v7. Therefore, any Pusher-maintained or compatible client can connect to it, bringing a plug-and-play experience for existing applications that are already compatible with this protocol.
You and your users can access the API and WebSockets through Pusher-like apps which serve keys and secrets to connect or authenticate requests for broadcasting events or checking channels statuses. soketi also comes built-in with support for DynamoDB and SQL-based servers like Postgres.
In addition to being a good companion during local development, soketi comes with the resiliency and speed required for demanding production applications.
soketi just exposes the metrics to you, you just have to scrape them, whether it's a simple HTTP Client to pull the current usage, or you're using Prometheus to monitor all the connections.
soketi is meant to be free, forever. Having a good companion for developing real-time applications locally and in production should not involve any third-party and having a reliable websocket server to deploy behind a firewall makes soketi a compelling option for many applications.
Of course, like many open source software solutions, development is done by investing volunteer time into the project. Therefore, all donations are greatly appreciated. You can sponsor the development via Github Sponsors.
The entire documentation is available on Gitbook π
We really appreciate how this project turned to be such a great success. It will always remain open-source, free, and maintained. This is the real-time as it should be.
Please see CONTRIBUTING for details.
Have any ideas that can make into the project? Perhaps you have questions? Jump into the discussions board or join the Discord channel
If you discover any security related issues, please email alex@renoki.org instead of using the issue tracker.