易于编程的 WebSocket 服务器 [英] Easy to Program WebSocket Server

查看:38
本文介绍了易于编程的 WebSocket 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始阅读有关 websockets 的内容,但我找不到一个好的 WebSocket 服务器并且无法轻松编写一些示例...

I'm starting to read about websockets, but I can't find a good WebSocket server and easy to program some examples...

我是一个完整的初学者,我不需要一个支持大并发的服务器,我只是想尝试一些例子......

I'm a complete beginner, and I don't need a server that supports a big concurrency, I just want something to try some examples...

有什么帮助吗??

谢谢!!

推荐答案

请记住,websockets 是新技术.最新的协议草案刚刚提交成为实际标准.Opera 甚至还不支持最新的协议,微软远远落后(据说在版本 10 MSIE 中可用的部分实现).Chrome 在开发版本中支持它.Firefox 最近发布了支持它的第 7 版.如果您需要作为早期采用者成为开发社区"的一部分,请不要感到惊讶:即随着工具变得成熟和教程更加丰富而引导自己的方式.

Keep in mind that websockets are new technology. The most recent draft protocol has just been submitted to become the actual standard. Opera doesn't even support the latest protocol yet and Microsoft is far behind (a partial implementation said to become available in version 10 MSIE). Chrome supports it in a development version. Firefox very recently released their version 7 that supports it. Don't be surprised if you need to become part of the "development community" as an early adopter: i.e. boot-strapping your way along as tools become mature and tutorials more plentiful.

您可以关注我的博客.我正在创建一些看起来正是您正在寻找的东西,它将免费分发给开发人员.时机可能是好的,即使它还没有准备好分发.它将与所谓的 HLL 框架的部分集成,这将使应用程序更易于开发.我还想让使用脚本(包括 JavaScript)开发后端应用程序组件成为可能.我已经在 HLL 框架中做了一些工作.有一个工作演示,您可以下载 dhtml/javascript 客户端,很快您还可以下载一个非浏览器客户端,您也可以使用它来构建应用程序组件.该服务器采用纯 Sun (Oracle) Java 构建,在 Linux 和 Windows 上运行同样出色.由于它还提供了脚本引擎,因此用脚本编写的应用程序组件也将是可移植的.

You can follow my blog. I'm creating something that seems like it's just what you're looking for and it will be distributed free to developers. Timing might be good, even though it's not ready for distribution yet. It will be integrated with parts of what's called the HLL framework that will make applications easier to develop. I'd also like to make it possible to develop back-end application components using script, including JavaScript. I've already done some work on that in the HLL framework. There's a working demonstration and you can download the dhtml / javascript client and soon a non-browser client that you can also use to build application components. The server, built in pure Sun (Oracle) Java, runs equally well on both Linux and Windows. Since it would also provide the scripting engine, application components written in script would also be portable.

websocket 服务器支持最新版本的提议协议,现已提交成为实际的 websocket 标准.该演示将在 Chrome dev-channel(也称为 Chromium)14 或更高版本上运行.此外,Firefox 7 现已发布(不再是 Beta 版).

The websocket server supports the latest version of the proposed protocol, which has now been submitted to become the actual websocket standard. The demo will run on Chrome dev-channel (also known as Chromium) 14 or later. Also, Firefox 7 which has now been released (no longer in Beta).

这篇关于易于编程的 WebSocket 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆