html - 我可以在 Windows Phone 8 应用程序中使用 Node.js 吗?

标签 html node.js sockets windows-phone-8

我正在开发一个需要通过套接字传输数据的应用程序。我必须使用标准 http 协议(protocol)通过套接字发送和接收数据。那么我可以在 Windows Phone 8 应用程序中使用 Node.js 来分别创建和解析 Http 请求和响应吗?

我正在使用 c# .NET 编写代码。

提前致谢。 问候, 维杰

最佳答案

遗憾的是,您无法使用 HTML5+JavaScript 创建 Windows Phone 应用程序,因此您将无法在您的应用程序中使用此库。
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206940(v=vs.105).aspx

HTML-based phone apps aren’t a supported app model in Windows Phone 8. However, a developer can create a managed app with a XAML front end that uses an embedded browser control to display local HTML content, and it’s possible to access phone APIs by using the InvokeScript method and ScriptNotify events. Also, in Windows Phone 8, the phone’s browser has been upgraded to Internet Explorer Mobile 10, with a host of new features such as a robust HTML5/CSS3 implementation, Scalable Vector Graphics (SVG), ES5, IndexedDB, gesture events, and the addition of the high-performance scripting engine, creating new, interesting possibilities for Windows Phone 8 HTML developers.

但是如果您只想在 WIndows Phone 应用程序中使用套接字,则可以直接在 C# 中使用它们:
Sockets for Windows Phone

关于html - 我可以在 Windows Phone 8 应用程序中使用 Node.js 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14253772/

相关文章:

javascript - 如何向下滑动div并显示隐藏的div?

javascript - 如何在 GWT 中绘制 Canvas

javascript - 在同一个请求中进行两个方法调用

javascript - 使用 discord.js 和 ytdl-core 播放音频文件

Linux:INET 监听套接字绑定(bind)的更细粒度控制?

html - 如何在 td 元素中呈现文本和按钮元素而不换行?

html - div 在 css 图像之前没有覆盖在 div 中

javascript - 如何刷新 Firebase session Cookie

c - 内核土地套接字连接超时

c++ - 为什么 select 调用不会阻塞在 unix 域套接字上?