Skip to content

Commit

Permalink
docs: (qwikcity/server$) grammar; punctuation; readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sajebehari committed Jun 11, 2024
1 parent eebe08e commit 53455fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/routes/docs/(qwikcity)/server$/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ created_at: '2023-03-29T02:35:29Z'

# `server$()`

`server$()` allows you to define functions that execute exclusively on the server, making it ideal for server-only operations and database access. It functions as an RPC (Remote Procedure Call) mechanism between the client and server, similar to a traditional HTTP endpoint, but strongly typed with TypeScript and easier to maintain.
`server$()` allows you to define functions that execute exclusively on the server, making it ideal for server-only operations and database access. It functions as an RPC (Remote Procedure Call) mechanism between the client and server. This is similar to a traditional HTTP endpoint, but strongly typed with TypeScript and easier to maintain.

> `server$` can accept any number of arguments and return any value that can be serialized by Qwik, that includes primitives, objects, arrays, bigint, JSX nodes and even Promises, just to name a few.
> `server$` can accept any number of arguments and return any value that can be serialized by Qwik. This includes primitives, objects, arrays, bigint, JSX nodes, and even Promises, just to name a few.

`AbortSignal` is optional, and allows you to cancel a long running request by terminating the connection.
Expand Down

0 comments on commit 53455fd

Please sign in to comment.