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 Lover

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

  • Question via theleagueofmoveabletype
    Anonymous asked: Hi there - I've looked through the Open Font License but didn't see a statement specifically pertaining to embedding LoMT fonts in (iOS) apps. Is that allowed with attribution for all League fonts? Thanks - chad martin chad|at|pivotalaction|daught|com

    Great question! And 10 points for reading the license!

    If you haven’t seen it, there’s a pretty great FAQ that comes along with the OFL (we have a...

    Question via theleagueofmoveabletype
  • Photo via littlebigdetails

    Tumblr - The copy inside the age verification form, when signing up for Tumblr, changes depending on the value.

    /via okdan

    Photo via littlebigdetails
  • Quote via d1rk
    “Forget & Focus. My way of living. Do only one thing at any given time; as best as you can. Applies to coding, architecture and life”
    Quote via d1rk
  • Photo via littlebigdetails

    Vimeo - When visiting a non-existing page on Vimeo, the title is VimeUhOh.

    /via Joris-Jan van den Boom

    Photo via littlebigdetails
See more →
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr