+ 4
Is it possible to create a messaging app without ajax??
I mean loading messages without continuously without page reload.
15 ответов
+ 5
You can do it with polling too (using cookie for "identify" the client) but its very "old" style, very inefficient today and give many problems to mnage. Websockets are a good way to handle the problem then, me too suggest use them. Personally i developed 2 systems for messaging and notifications for my company (first in nodejs/web and other in fully java) and either works very well
+ 8
Yes you can. You must use preventDefault(). Some elements like the form element automatically refresh the page on submit.
Ajax is not a programming language. It is Asynchronous JavaScript And XML (more a technique). A WebSocket is a persistent connection between a client and server. So if you want to create a messaging app like Whatsapp you will need to use a Websocket to listen for messages and some asynchronous javaScripting. The easiest way is to use something like firebase firestore that has real time data updating and listening capabilities built in.
+ 3
Use websocket
https://youtu.be/jD7FnbI76Hg
+ 3
mostly its good idea to use web RTC provided by web and websockets for chat apps..
or you can also use firebase ...
[i haven't tried firebase so cant say about its performance]
ajax is really an bad idea if you want to make chat app with it cuz its only single directional and works on http...
+ 2
As Lily said.
Sockets are the only option.
+ 1
websocket
+ 1
Okay . Thanks a lot
+ 1
نتتتت
0
Which should i use ajax or web socket
0
Okay which framework i should use. I know:
Django
Node
Deno
Spring
If these are not so good for chat apps or social sites than suggest me other framework. I will learn that.
0
I dont know Spring, Deno and Django then i can only suggest node 😉
0
Which frontend should i use?
[ I don't know any front end framework but i'll learn soon ]
0
I have not very much knowldgment of fully web front-end frameworks. I usually use Vue because is really light for my needs
0
Wasi You are welcome 👍🏻