5- Discussing chat initiate API

  Рет қаралды 3,083

Adeel Imran

Adeel Imran

Күн бұрын

I give a walk through on how the chat initiate API work
Tutorial link www.freecodeca...
Source code github.com/ade...
/ adeelibr

Пікірлер: 4
@how-to.224
@how-to.224 Жыл бұрын
This is exxcellent. thank you
@moidhasanbeig7499
@moidhasanbeig7499 4 жыл бұрын
Well explained Adeel! I have one doubt though. Does this API support group chats? I got this doubt from this function: "subscribeOtherUser(room, otherUserId)". Since here the second arg is an individual user ID and not an array of multiple users who could be a part of a group conversation.
@AdeelImranr
@AdeelImranr 4 жыл бұрын
yes the idea is every chat is a group chat, even if it has 2 people in it. It is a group chat.
@moidhasanbeig7499
@moidhasanbeig7499 4 жыл бұрын
I just got how absurd my doubt was. But now my doubt is, whenever a client connects to our WebSocket, then as per this: "global.io.on('connection', WebSockets.connection)", the connection method gets invoked. But in the function definition, it requires an argument: "connection(client) { ... }", so during function call why aren't we passing any? I'm just a beginner to node so please bear with me. Another doubt is, in this: "subscribeOtherUser(room, otherUserId)", what is actually "otherUserId"? Please help man.
6-  Discuss how to create a message in a chat room API
27:19
Adeel Imran
Рет қаралды 2,5 М.
1- Understanding basic ExpressJS terminologies
32:30
Adeel Imran
Рет қаралды 8 М.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,1 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 26 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
The Value of Source Code
17:46
Philomatics
Рет қаралды 51 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 305 М.
Should you use Bun, Deno etc. instead of Node.js?
7:28
Maximilian Schwarzmüller
Рет қаралды 20 М.
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 14 М.
7- Discuss get conversation & get all conversations API
25:57
Adeel Imran
Рет қаралды 2,3 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 61 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 52 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 208 М.