getSingle

Get a stream with single party.

If update is true, the following is done: if the stream does not exist, it is created and the party is added to the stream. If is exists, its stream party is updated.

Return

The stream with the specified single party or null if update is falseand the stream does not exist.

Parameters

party

The only party of the stream.

update

Whether to create or update the stream.