Skip to content

Commit

Permalink
update the examples and links
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwuno committed Oct 21, 2024
1 parent 5ba7452 commit 656f15a
Show file tree
Hide file tree
Showing 16 changed files with 834 additions and 645 deletions.
10 changes: 1 addition & 9 deletions src/content/doc-sdk-javascript/core/create-a-new-connection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ While the `.connect()` method is the primary method to connect to a SurrealDB in
<td scope="row" data-label="Method"><a href="/docs/sdk/javascript/methods/use"> <code> db.use(namespace,database)</code></a></td>
<td scope="row" data-label="Description">Switch to a specific namespace and database</td>
</tr>
<tr>
<td scope="row" data-label="Method"><a href="/docs/sdk/javascript/methods/let"> <code>db.let(key,val)</code></a></td>
<td scope="row" data-label="Description">Assigns a value as a parameter for this connection</td>
</tr>
<tr>
<td scope="row" data-label="Method"><a href="/docs/sdk/javascript/methods/unset"> <code>db.unset(key)</code></a></td>
<td scope="row" data-label="Description">Removes a parameter for this connection</td>
</tr>
</tbody>
</table>

Expand All @@ -63,7 +55,7 @@ This means that the `.use()` method is not required if you specify the [`namespa

### Connection options

You can specify your connection protocol either as `http`, `https`, `ws`, or `wss`. If you do not specify a protocol, the default protocol is `http`. Since SurrealDB also supports RPC over WebSocket, you can specify with a `/rpc` suffix.
You can specify your connection protocol either as `http`, `https`, `ws`, or `wss`. Since SurrealDB also supports RPC over WebSocket, by default, it is specified with a `/rpc` suffix.

<Tabs groupId="JS/TS">
<TabItem value="TS" label="Local endpoint" default>
Expand Down
Loading

0 comments on commit 656f15a

Please sign in to comment.