Beacon Push for haXe
![]()
I’ve been playing around with Beacon Push, a service which allows you to enable any web app to have real-time features. They provide a javascript file, which handles all aspects of messaging, websockets, flash sockets, comet etc all which depends on what the users browser supports.
I want to take a shot at creating a Beacon Push client library for haXe sometime, but lets stick to the server side script.
Beacon Push also support a REST api, so I created a small simple script which separates everything into function calls (what else). You can download the first revision from my dropbox folder.
The script uses the JSON and HTTP scripts from the Caffeine-hx library. If you haven’t seen or heard of the Caffeine-hx library, then you need to check it out, as it provides alot of features haXe currently doesn’t support natively.
The reason I have the HTTP script instead of the standard haXe HTTP script is simple, it didn’t work with POST-ing JSON data.
I’m not sure why, as the headers it created where fine. But hopefully I will figure it out, so there is one less dependency. If any one else figures it out, let me know!
The script is based on the Beacon Push Python library, by Joakim Hamren.
[UPDATE | 01/09/2010]
You can now find haXe-BeaconPush on github. Also force quit method works. Github page.
