openfl-websocket 0.2.0

Websocket client working with openfl

Released 2016-03-14.

To install, run:

haxelib install openfl-websocket 0.2.0

See using Haxelib in Haxelib documentation for more information.

Maintainersoywiz
Websitehttps://github.com/soywiz/openfl-websocket
Current version0.2.0
StatisticsInstalled 220 times
LicenseMIT
Tags android, cpp, ios, neko, net, openfl, websocket

README.md

openfl-websocket

http://lib.haxe.org/p/openfl-websocket

`haxelib install openfl-websocket`

var ws = new WebSocket("ws://127.0.0.1:8080/test", "http://127.0.0.1/origin");
ws.onTextPacket.add(function(text:String) {
	trace(text);
});
var slot = ws.onBinaryPacket.add(function(data:ByteArray) {
	trace(data);
	slot.dispose();
});
ws.sendText("Hello World!");
ws.sendBinary(new ByteArray());
//ws.close();