Categories
blog

Haxe Websockets (Part 2)

Read this post for Part 1…

I have just updated the haxe websocket code significantly. I have made a websocket compatible ThreadServer and ThreadRemotingServer, and included some different examples of using these classes.

Categories
blog

Haxe Websockets

The code for this post is here.

In a previous post I explained how to create a socket connection from javascript to a server using Haxe. Unfortunately, this technique requried using flash as a proxy between javascript and the server. As I am working on a game for Mozilla’s game on competition I needed to find a flash free way. This is where websockets comes in. Websockets are a new standard way to open a continuous connection with a server. There are many articles explaining this technology and so I won’t try to. This article is about my adventure with setting up a WebSocket server using Haxe.