Showing posts with label hapijs. Show all posts
Showing posts with label hapijs. Show all posts

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!