diff --git a/docs/README.md b/docs/README.md index 0a217dd..abe6625 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,7 +18,7 @@ Make your real-time communication fast and [reliable](./anycable-go/reliable_str - [Using AnyCable with Rails](rails/getting_started.md) -- [AnyCable as a real-time server for Node.js (serverless)](guides/serverless.md) +- [AnyCable as a real-time server for serverless JavaScript](guides/serverless.md) - [Using AnyCable with Hotwire applications](guides/hotwire.md) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 32e44de..9783c16 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -10,7 +10,7 @@ * Guides * [Using with Rails](/rails/getting_started.md) - * [Using with Node.js (serverless)](/guides/serverless.md) + * [Using with JavaScript (serverless)](/guides/serverless.md) * [Using with Hotwire](/guides/hotwire.md) * [Reliable streams](/anycable-go/reliable_streams.md) * [Using with Ruby](/ruby/non_rails.md) diff --git a/docs/guides/serverless.md b/docs/guides/serverless.md index 16309a3..3aa854c 100644 --- a/docs/guides/serverless.md +++ b/docs/guides/serverless.md @@ -1,10 +1,10 @@ -# Using AnyCable to power serverless Node.js applications +# Using AnyCable to power serverless JavaScript applications -AnyCable is a great companion for your serverless Node.js applications needing real-time features. It can be used as a real-time server with no strings attached: no vendor lock-in, no microservices spaghetti, no unexpected PaaS bills. Keep your logic in one place (your JS application) and let AnyCable handle the low-level stuff. +AnyCable is a great companion for your serverless JavaScript (and TypeScript) applications needing real-time features. It can be used as a real-time server with no strings attached: no vendor lock-in, no microservices spaghetti, no unexpected PaaS bills. Keep your logic in one place (your JS application) and let AnyCable handle the low-level stuff. ## Overview -To use AnyCable with a serverless Node.js application, you need to: +To use AnyCable with a serverless JS application, you need to: - Deploy AnyCable-Go to a platform of your choice (see [below](#deploying-anycable-go)). - Configure AnyCable API handler in your JS application. @@ -26,7 +26,7 @@ Luckily, you don't need to write all this code from scratch. Our JS SDK makes it > Check out our demo Next.js application to see the complete example: [vercel-anycable-demo][] -AnyCable SDK uses Rails Action Cable concepts, such as _channels_, to encapsulate real-time logic. For example, a channel representing a chat room may be defined as follows: +AnyCable SDK uses _channels_ to encapsulate real-time logic. For example, a channel representing a chat room may be defined as follows: ```js import { Channel } from "@anycable/serverless-js";