importReactfrom"react";import{Stream}from"streamapi";exportdefault()=>{return<Streamtitle={"Join room"}chat={true}testMode={true}data={{name: "<username>",room: "<unique room id>",type: "producer"or"consumer",record: trueorfalse,}}accessKey="<your access key>"onEnded={()=>{// User clicked on the close button, the Stream component can now be unmounted and// logic to collect post session stats can kick in}}theme={{primary: "#f3f3fc",contrast: "#6d6af8"}}/>}
Production script
importReactfrom"react";import{Stream}from"streamapi";exportdefault()=>{return<Streamchat={true}token="<token>"accessKey="<your access key>"onEnded={()=>{// User clicked on the close button, the Stream component can now be unmounted and // logic to collect post session stats can kick in}}/>}