Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

How chat events from front end are consumed in NodejS backend #63

@mayurgujrathi

Description

@mayurgujrathi

How chat events from front end are consumed in NodejS backend. Because I am seeing on twilio docs its built in APIs for chat room creation, adding members, send messages to channel.

const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.chat.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.messages
.create({body: 'MESSAGE'})
.then(message => console.log(message.sid));

Are we sending messages through above API or we have events for same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions