Skip to content

Commit

Permalink
Update and rename websocket.mdx to rpc.mdx (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
timpratim authored Apr 10, 2024
1 parent 88560f1 commit 14fed9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
---
sidebar_position: 1
sidebar_label: WebSocket
title: WebSocket Protocol | Integration
description: The WebSocket protocol allows for easy bi-directional communication with SurrealDB.
sidebar_label: RPC Protocol
title: RPC Protocol | Integration
description: The RPC protocol allows for easy bi-directional communication with SurrealDB.
---

# WebSocket (text protocol)
# RPC Protocol

The WebSocket protocol allows for easy bi-directional communication with SurrealDB. This allows you to maintain a single connection to run all your queries, but also opens up the possibility of Live Queries!

:::note
Live queries are still under development, though available soon.
:::

<br/>
The RPC protocol allows for easy bi-directional communication with SurrealDB. This allows you to maintain a single connection to run all your queries, but also opens up the possibility of Live Queries!

<table>
<thead>
Expand Down Expand Up @@ -1272,4 +1266,4 @@ Notice how the deleted record is being returned here
"name": "John Doe"
}
}
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You will want to keep track of this ID, so that you can differentiate between di
You can also use this UUID to [KILL (stop)](/docs/surrealdb/surrealql/statements/kill) the Live Query.

The protocol will then send messages that are of a Notification format.
You can find an example of such a message in the [Live Query WebSocket protocol](/docs/surrealdb/integration/websocket#live) description.
You can find an example of such a message in the [Live Query WebSocket protocol](/docs/surrealdb/integration/rpc#live) description.

### Diff

Expand Down

0 comments on commit 14fed9e

Please sign in to comment.