简体   繁体   English

通过网站将信息从一个人即时发送到另一个人(就像聊天室一样)

[英]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.

相关问题 如何在 React js 中将数据从一个网站发送到另一个网站? - How to send data from one website to another website in React js? 将信息从一个浏览器窗口发送到另一个 - Send information from one browser window to another Javascript。 如何使用javascript将信息发送到另一个网站? - Javascript. How do I send information to another website in javascript? 如何在不导航到另一个屏幕的情况下将信息从一个屏幕发送到另一个屏幕? - How would I send information from one screen to another without navigating to the other screen? 如何使用 Firebase 实时数据库将信息从一个用户发送到另一个用户? - How can I send information from one user to another using Firebase realtime database? 将Rails信息从一个窗口发送到另一个窗口? - Send rails information from one window onto another window? 无法弄清楚如何将信息从一个发送到另一个。php 文件 - Can't figure out how to send information from one to another .php file 需要异步地将数据从一个网站发送到另一个网站 - Need to send data from one website to another asynchronously 如何将用户从一个 url 重定向到另一个具有 JavaScript 操作(例如添加到购物车)的网站 - How can I redirect users from one url to another website that has a JavaScript action like add to cart 在浏览器级别将数据从一个网站发送到另一个网站 - Send data from one website to another on browser level
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM