Skial Bainn

  • Random
  • Archive
  • RSS
  • Ask me anything

Beacon Push for haXe

Beacon Push

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.

    • #haxe
    • #beaconpush
    • #realtime
    • #caffiene-hx
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Portrait/Logo

About

Ramblings from a haXe evangelist

Pages

  • Contact

Me, Elsewhere

  • skial on Forrst
  • @skial on Twitter
  • Facebook Profile
  • skial on Vimeo
  • skialbainn on Youtube
  • skial on Flickr
  • skial on Last.fm
  • Google
  • Linkedin Profile
  • skial on github

Following

I Like These Posts

  • Photoset via playpeep

    MinoMonsters [iOS 4.2 or later, Universal, $0.99]

    A great, stylish, dynamic art style for this Pokémon-style game. Sadly the game gets bogged...

    Photoset via playpeep
  • Photo via littlebigdetails

    Amazon.com - Shows the most helpful favorable review and the most helpful critical review on top.

    /via Marina Janeiko

    Photo via littlebigdetails
  • Photoset via playpeep

    Land-A-Panda [iOS Universal, $0.99]

    Photoset via playpeep
  • Photoset via playpeep

    Pushmo [3DS eShop, $6.99]

    Pushmo has a great kiddie look - works wonders with the puzzle genre, so that when the game gets too difficult, you...

    Photoset via playpeep
See more →
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr