mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-04 15:47:50 +02:00
Revert "update banners to absolute paths"
This reverts commit c8b8f9309e.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||

|
||||

|
||||
|
||||
Expose a WebSocket server to your Tauri frontend.
|
||||
|
||||
@@ -60,11 +60,11 @@ fn main() {
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import WebSocket from '@tauri-apps/plugin-websocket';
|
||||
import WebSocket from "@tauri-apps/plugin-websocket";
|
||||
|
||||
const ws = await WebSocket.connect('wss://example.com');
|
||||
const ws = await WebSocket.connect("wss://example.com");
|
||||
|
||||
await ws.send('Hello World');
|
||||
await ws.send("Hello World");
|
||||
|
||||
await ws.disconnect();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user