D
D
dron1122021-04-07 13:22:11
Vue.js
dron112, 2021-04-07 13:22:11

How to make realtime chat with Vue.js?

There is a test task in which you need to implement a chat on vue.js, without using third-party libraries .
Requirements:
- You can open the application in different tabs
- Enter both in that tab and in another with a unique login (consider two different users)
- and start a conversation between different tabs

I wanted to do it on sockets using the express framework

But the terms of reference indicate without the use of third-party libraries and without using the network functions of the browser

What does it mean - the network functions of the browser ?
Is it possible to make such a chat without sockets, but only on vue.js

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2021-04-07
@dron112

Within the same browser - on localStorage using the storage event.

N
Neuro, 2021-04-07
@Riveran

If you can’t use third-party libraries, then discard vue, write front and back components in native js.
I would not take a steam bath, I would take vue + express + socket.io

A
approximate solution, 2021-04-07
@approximate_solution

I wanted to do it on sockets using the express framework

So express is not a library :) one loophole has already been found for you.
You can dig into MDN and rub your nose at the boyars that sockets are not only a network function of the browser, but also a protocol, and nothing has been written about the use of protocols, so welcome.

H
HPro, 2021-04-08
@HPro

Look this way:
https://github.com/lesmana/webrtc-without-signalin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question