Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Native Stream Group Chat Tutorial: create channel
// server/server.js
app.get("/create-channel", async (req, res) => {
const user_id = req.query.user_id;
const sample_channel ='messaging', 'sample-room1', {
name: 'Sample Room 1',
image: '',
created_by_id: user_id,
const create_channel = await sample_channel.create();
console.log("channel: ", create_channel);
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.