Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Get Stream Id from Promise returned by StartRoom and SendMessage API through ECP


We are using ECP(Embedded Collaboration Platform) in our application. We are trying to resolve the javascript promise sent by StartRoom,SendMessage and CreateRoom API.


How to retrieve the stream id from javascript promise response sent by the above API. Could anyone please help me with a simple example.


As a first step, we want to initiate a new chat between 2 users.
For the first time, we won't have streamId to openStream or startroom.
we want to capture the stream id that was created for the first time and sent as javascript Promise response for Startroom, SendMessage and CreateRoom API from Symphony.

Posted one year ago
Edited one year ago
Votes Newest

Answers 3

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.

  'Room Name',
  [ 123456789, 123456788, 123456787 ],
).then((response) => console.log(response.streamId));
Posted one year ago
Yong Sheng Tan
39 × 2 Administrator

Thank you . Will try this. Is it same for the StartToom and SendMessage API.

Posted one year ago

Thnks for sharing

Posted 10 months ago
3 Answers
one year ago
10 months ago