Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
startStream = () => {
const self = this;
this.connected = false;
this.peerConnection = null;
this.active = true;
var request = new Empty();
this.rtc.requestRtcStream(request).on("data", (response) => {
// Configure
self.guid = response;
self.connected = true;
if (!this.poll) {
// Streaming envoy based.
self._streamJsepMessage();
} else {
// Poll pump messages, go/envoy based proxy.
console.info("Polling jsep messages.");
self._receiveJsepMessage();
}
});
};
it("should allow setting and getting an Empty field", () => {
const msg = new WellKnownMessage();
const myEmpty = new Empty();
msg.setMyEmpty(myEmpty);
assert.ok(msg.getMyEmpty() as Empty instanceof Empty);
});
public async GetMyUserEmail(): Promise {
return await this.request(
c => c.getMyUserEmail,
new Empty(),
f => f,
);
}
public async DeactivateMyOrg(): Promise {
return await this.request(
c => c.deactivateMyOrg,
new Empty(),
f => f,
);
}
public async ReactivateMyOrg(): Promise {
const req = new OrgID();
return await this.request(
c => c.reactivateMyOrg,
new Empty(),
f => f,
);
}
public async GetPasswordAgePolicy(): Promise {
const req = new Empty();
return await this.request(
c => c.getPasswordAgePolicy,
req,
f => f,
);
}
public async GetMyOrgIamPolicy(): Promise {
return await this.request(
c => c.getMyOrgIamPolicy,
new Empty(),
f => f,
);
}
public async RemoveMyUserPhone(): Promise {
return await this.request(
c => c.removeMyUserPhone,
new Empty(),
f => f,
);
}
public async GetProjectGrantMemberRoles(): Promise {
const req = new Empty();
return await this.request(
c => c.getProjectGrantMemberRoles,
req,
f => f,
);
}