Skip to content

Commit

Permalink
Node.js -> JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Nov 6, 2023
1 parent a2536db commit f60aaa6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/serverless.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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";
Expand Down

0 comments on commit f60aaa6

Please sign in to comment.