Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
React Native Stream Group Chat Tutorial: Add room member
// server/server.js
app.post("/add-member", async (req, res) => {
const user_id = req.body.user_id;
const sample_channel = server_side_client.channel('messaging', 'sample-room1');
const add_member = await sample_channel.addMembers([user_id]);
console.log("members: ", add_member);
res.send('ok');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.