fix
parent
7ae7307282
commit
ed5fa16a36
|
@ -108,6 +108,7 @@ export class RayconnectBase extends RayconnectCore {
|
|||
address: param.address,
|
||||
info: {
|
||||
method: param.method,
|
||||
app_id:param.app,
|
||||
data: param.data
|
||||
},
|
||||
};
|
||||
|
|
|
@ -20,7 +20,7 @@ export class RayconnectCore {
|
|||
protected authed: boolean = false;
|
||||
protected realTime: boolean = false;
|
||||
|
||||
public localEvents = new events.EventEmitter();
|
||||
public localEvents = new events.EventEmitter();
|
||||
|
||||
protected CloudStorageservice: CloudStorageService;
|
||||
|
||||
|
@ -82,6 +82,10 @@ export class RayconnectCore {
|
|||
if (this.config) {
|
||||
connectionString = `${this.ops.url}?scopes=${this.ops.scopes}&appID=${this.ops.appID}&space=${this.ops.space}&type=${this.ops.type}&encode=${this.encode}&sdk_version=${version}`;
|
||||
|
||||
|
||||
if (this.ops.apps) {
|
||||
connectionString += `&apps=${this.ops.apps}`
|
||||
}
|
||||
if (this.token) {
|
||||
connectionString += `&token=${this.token}`;
|
||||
}
|
||||
|
@ -234,7 +238,7 @@ export class RayconnectCore {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ export interface Options {
|
|||
space: string;
|
||||
type: string;
|
||||
url?: string;
|
||||
apps?:string;
|
||||
unsecure?: boolean;
|
||||
connected?: boolean;
|
||||
}
|
||||
|
@ -58,6 +59,7 @@ export interface CallType {
|
|||
scope: string;
|
||||
user?: string;
|
||||
token?: string;
|
||||
app?:string;
|
||||
address: string;
|
||||
method: string;
|
||||
data: any;
|
||||
|
|
Loading…
Reference in New Issue