You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: webcomponents/remote/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ The following options should be set using attributes:
78
78
| height | number | The height of the canvas |
79
79
| length | number | How many slides contains your deck, this is useful to inform the app about it and initialize the length of the canvas |
80
80
| slides | string[]| The ordered list of all the tag names of the slides. Useful if you would like to inform the app about which slides are used in your deck. |
81
+
| autoConnect | boolean | If you the component to not connect itself on load, set this property to `false`|
81
82
82
83
### Methods
83
84
@@ -97,6 +98,14 @@ Connect will open a socket with the signaling server and create a room for the p
97
98
await remote.connect();
98
99
```
99
100
101
+
#### Disconnect
102
+
103
+
Disconnect will close the socket with the signaling server and remove the deck from the list of possible deck to connect to.
104
+
105
+
```
106
+
await remote.disconnect();
107
+
```
108
+
100
109
#### Move canvas
101
110
102
111
You might need to move the canvas, this method let's you move it.
0 commit comments