Thursday, May 28, 2015

[Swift] Hello World Primus with Swift via ActionHeroJS

Pretty much same as Objective-C implement nothing to special, just this fancy block...
class Block<T>  {
    let f : T
    init (_ f: T){ self.f = f }
    var casted: AnyObject { get { return unsafeBitCast(f, AnyObject.self) } }
}
Which I can't find shorter way yet


Happy Coding!



Wednesday, May 27, 2015

[NodeJS] Hello World Primus with Objective-C via ActionHeroJS

From my previous post about Hapi and Faye I did mention about Hello World from Objective-C, So here it is! :D

I'm using Primus Objective-C to send data to ActionHeroJS at this time. Next stop is Swift implement ;)

TL;DR : https://github.com/katopz/primus-objc-helloworld

Happy Coding!

Monday, May 11, 2015

[NodeJS] HelloWorld Hapi And Faye


I did experiment with express and faye for serving static content and socket thingy before (Forget to blog about it arghhhh sry!), but I just run into some mention that real man use hapi and faye seem to be a weapon of choices for gitter 

As usual, I love to collect weapons for my upcoming project (many of them never use for production LOL). And after an hour with a little modification here's result... // TODO : sound TADAAA
tl;dr : https://github.com/katopz/hapi-faye-helloworld

If you have keen eye you will spot...

Got a message: hi from objc ^^

That's right! It's not just js to js (which is too easy!) but also some sub/pub from objtive-c too! If you feeling brave please feel free to follow FayeCpp setup instruction then apply my patched and enjoy!

Happy Coding! :D