简体   繁体   English

Android开发中使用socket

[英]Using socket in Android development

I have been looking around for a guide on how to implement socket in android development but could not find any.我一直在寻找有关如何在 android 开发中实现套接字的指南,但找不到任何指南。 I am currently recalling my API on activity created to ensure that data is updated for my app.我目前正在回忆我创建的活动 API,以确保为我的应用程序更新数据。

Can anyone assist with a guide to help achieve real time update with socket on android.任何人都可以协助指导以帮助在 android 上使用套接字实现实时更新。

There is a powerful library called SOCKET.IO that you could use for this purpose.有一个名为SOCKET.IO的强大库SOCKET.IO于此目的。 It supports multiple languages for both backend and client applications.它支持后端和客户端应用程序的多种语言。 Please check this link for more info and also here is an android example.请查看此链接以获取更多信息, 这里还有一个 android 示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM