T
T
Thebkh2021-08-06 22:10:35
JavaScript
Thebkh, 2021-08-06 22:10:35

How to make cursor chat in real time?

Hello!

I have a question for which I did not find an answer on the Russian web. How to make a cursor-chat in real time. I enter text in the field next to the cursor and it moves with it, and another user can see my text and cursor, how can I do this?images?q=tbn:ANd9GcQMt-SIxvT3IyIjpNVWR90rKYLQFTrOS2e6UQ&usqp=CAU

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Derepko, 2021-08-06
@uDenX

As well as any data exchange. Information is transmitted to the server (for example, the position of the cursor), the server transmits to the clients, the client renders

V
Victor L, 2021-08-07
@Fzero0

tynts

A
Anton Romankov, 2021-08-12
@romant094

Denis is right. But I’ll add a little:
Sockets must be raised. the server should store sessions of active users and the position of their cursor.
As for the text - similarly, only there should already be a subscription to the "text".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question