Skip to content

Instantly share code, notes, and snippets.

View James-Parsons's full-sized avatar

James Parsons James-Parsons

View GitHub Profile
<a href="https://stylecollective.us" target="blank"><img src="http://www.yourwebsite.com/your-image-file-url.jpg" /></a>
@James-Parsons
James-Parsons / SuicidalActor.scala
Last active November 14, 2016 15:46
A suicidal actor for a web socket.
import akka.actor._
object SuicidalActor {
def props(out: ActorRef) = Props(new SuicidalActor(out))
}
class SuicidalActor(out: ActorRef) extends Actor {
def receive = {
case msg: String =>
out ! ("I hate my life!"))