[英]Send information through a website from one person to another instantaneously (like how a chatroom does)
I have a chatroom.我有一个聊天室。 The API (Scaledrone) handles all of the server/back-end stuff, and is made of JavaScript.
API(Scaledrone)处理所有服务器/后端的东西,由 JavaScript 制成。 If the API could transfer information from one user to another instantaneously with Javascript, then is there one where the information doesn't have to be restricted to sending messages to each other?
如果 API 可以使用 Javascript 将信息从一个用户瞬间传输到另一个用户,那么是否有一个信息不必限制为相互发送消息? I want this for certain features, like kicking people out of chatrooms, or even making a feedback form with AJAX to backend servers on OTHER websites.
我希望它用于某些功能,例如将人们踢出聊天室,甚至使用 AJAX 向其他网站上的后端服务器制作反馈表。 I have looked at solutions, but these were only with back-end technologies, which makes sense.
我已经研究过解决方案,但这些仅适用于后端技术,这是有道理的。 Could someone tell me how to do this?
有人可以告诉我该怎么做吗?
Hmmm well I'm not sure about the Scaledrone API, but if you want to send information between two users in just javascript and html you could try using WebRTC. Hmmm well I'm not sure about the Scaledrone API, but if you want to send information between two users in just javascript and html you could try using WebRTC. Here's a link to something that might be useful: https://blog.logrocket.com/get-a-basic-chat-application-working-with-webrtc/
这是一个可能有用的链接: https://blog.logrocket.com/get-a-basic-chat-application-working-with-webrtc/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.