Thank you . Will try this. Is it same for the StartToom and SendMessage API.
The ECP SDK returns a standard Javascript promise so you either use await
or then()
to retrieve the response, in which streamId
is in the object root.
window.symphony.createRoom(
'Room Name',
[ 123456789, 123456788, 123456787 ],
{},
'.ecp-div'
).then((response) => console.log(response.streamId));