soywiz / Haxe Ws
Haxe WebSockets everywhere! Including javascript, flash and sys targets.
Stars: ✭ 67
Programming Languages
haxe
709 projects
WebSockets everywhere! Including javascript, flash and sys targets.
class WebSocketExample {
static public function main() {
trace('testing!');
var ws = WebSocket.create("ws://127.0.0.1:8000/", ['echo-protocol'], false);
ws.onopen = function() {
trace('open!');
ws.sendString('hello friend!');
};
ws.onmessageString = function(message) {
trace('message from server!' + message);
};
#if sys
while (true) {
ws.process();
Sys.sleep(0.1);
}
#end
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].