Skip to content

teamon/akka.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screw HTTP, use Akka!

Screencast

Run the example

$ sbt run

WTF?

Make you JS feel like akka ;)

Akka

class EchoActor extends Actor {
  def receive = {
    case msg => sender ! ("echo: " + msg)
  }
}
// ...
val echo = system.actorOf(Props[EchoActor], name = "echo")

JavaScript

var system = AkkaSystemP("/api")
var EchoActor = system.actorFor("/echo")
EchoActor.send("hello")

var promise = EchoActor.ask("hello") // will be filled when akka actor replies

How?

Angular.js -> Websocket -> Socko -> Akka and back,

About

akka actors for java script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published