WebSocket ActionScript Client
来源:互联网 发布:java static volatile 编辑:程序博客网 时间:2024/05/22 00:26
WebSocket ActionScript Client
Clean and simple WebSocket client.
Requires as3corelib com.adobe.net.URI class.
Usage example
Clone from repo:git clone git://github.com/y8/websocket-as.git y8
Or use as submodule:git submodule add git://github.com/y8/websocket-as.git y8
import y8.net.WebSocket;
var ws:WebSocket = new WebSocket();
ws.addEventListener("open", function():void { trace("Connection opened"); ws.send("Hello from flash!"); ws.close();});
ws.addEventListener("close", function():void { trace("Connection closed");});
ws.addEventListener("message", function(event:*):void { trace("Message: ", event.data);});
ws.addEventListener("error", function(event:*):void { trace("Error: ", event.error);});
ws.open("ws://socket.example.com/path", "http://myapp.example.com");
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don’t break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
License
websocket-as licensed under Ruby License. See LICENSE for details.
Copyright
© Alexey Y. Bondar (y8@ya.ru), 2010.
- WebSocket ActionScript Client
- python websocket client
- WebSocket Client连接远程WebSocket Server
- java websocket client ssl(wss)
- pusher websocket client,基于golang
- [Java] Netty Websocket Server Javascript Client
- [Java] Netty Websocket Server Javascript Client
- iOS Client 与WebSocket 通信(一)
- iOS Client 与WebSocket 通信(二)
- WebSocket 的原理和Client的实现
- iOS Client 与WebSocket 通信(一)
- iOS Client 与WebSocket 通信(二)
- iOS Client 与WebSocket 通信(一)
- iOS Client 与WebSocket 通信(二)
- iOS Client 与WebSocket 通信(一)
- iOS Client 与WebSocket 通信(二)
- android websocket client 如何调用autobahn.jar
- iOS Client 与WebSocket 通信(一)
- 图形图像处理之——实现图像子区域图像的简单提取
- Qt4编写的文本编辑器
- Oracle中的pl/sql编程的数据类型
- stm32之DDS及FFT
- 随便写点
- WebSocket ActionScript Client
- 程序员成熟的标志
- Spring jdbc 对象Mapper的简单封装
- C++ 顺序表的查找
- 《HTTP权威指南》读书笔记---TCP/IP
- 毕业之后,生活的压力扑面而来,曾经的梦想也流离失所
- Recerse linked list by block
- java.util.concurrent介绍
- 用户首选项NSUserDefaults