@scrypted/core 0.0.153 → 0.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/index.ts +3 -3
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
package/client/index.ts
CHANGED
|
@@ -12,14 +12,14 @@ export interface ScryptedClientStatic extends ScryptedStatic {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
connect(baseUrl: string): Promise<ScryptedClientStatic> {
|
|
15
|
+
connect(baseUrl: string, pluginId: string): Promise<ScryptedClientStatic> {
|
|
16
16
|
const rootLocation = baseUrl || `${window.location.protocol}//${window.location.host}`;
|
|
17
|
-
const endpointPath = `/endpoint
|
|
17
|
+
const endpointPath = `/endpoint/${pluginId}`;
|
|
18
18
|
|
|
19
19
|
return new Promise((resolve, reject) => {
|
|
20
20
|
|
|
21
21
|
const options: SocketOptions = {
|
|
22
|
-
path: `${endpointPath}/engine.io/`,
|
|
22
|
+
path: `${endpointPath}/engine.io/api/`,
|
|
23
23
|
};
|
|
24
24
|
const socket = eio(rootLocation, options);
|
|
25
25
|
|
package/dist/plugin.zip
CHANGED
|
Binary file
|