Skip to content

Commit

Permalink
Update api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway authored Oct 25, 2023
1 parent 4529160 commit 0b774b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Similarily, you can also use the `connect_to_server_sync` function to connect to


<!-- tabs:start -->
#### Asynchronous Client
#### **Asynchronous Client**

```python
import asyncio
Expand Down Expand Up @@ -61,7 +61,7 @@ if __name__ == "__main__":
asyncio.run(main())
```

#### Synchronous Client
#### **Synchronous Client**

```python
import numpy as np
Expand Down Expand Up @@ -97,7 +97,7 @@ if __name__ == "__main__":
> [!NOTE]
> In Python, the recommended way to interact with the server to use asynchronous functions with `asyncio`. However, if you need to use synchronous functions,
> you can use `from imjoy_rpc.hypha.sync import login, connect_to_server` (available since `imjoy-rpc>=0.5.25.post0`) instead.
> The have the exact same arguments as the asynchronous versions. For more information, see [Synchronous Wrapper](/imjoy-rpc?id=synchronous-wrapper)
> They have the exact same arguments as the asynchronous versions. For more information, see [Synchronous Wrapper](/imjoy-rpc?id=synchronous-wrapper)
> <strong>💡 Tip </strong><br>
> For QT-based applications, e.g. napari, imswitch, use the synchronous api.
Expand Down

0 comments on commit 0b774b4

Please sign in to comment.