In the example of an HTTP server with a sprayer, when I start the server, I do not see the message βConnectedβ in the log file:
https://github.com/spray/spray/tree/master/examples/spray-can/simple-http-server/src/main
However, if I try to create my own server and ignore the Bound message, I get them to the dead letters:
$ sbt run [info] Set current project to pingpong (in build file:/D:/Projects/pingpong/) [info] Updating {file:/D:/Projects/pingpong/}pingpong... [info] Resolving jline
My question is mainly out of curiosity, how is the Bound message handled in the example? Is it some kind of magazine that swallows them or something else?
Code for my Main.scala :
package drozdyuk.pingpong import akka.actor.{ActorSystem, Props} import akka.io.IO import spray.can.Http object Main extends App { implicit val system = ActorSystem()
and my WebService.scala :
package drozdyuk.pingpong import akka.actor._ import spray.http.HttpMethods.{GET} import spray.can.Http import spray.http.{HttpRequest, HttpResponse, Uri} class WebService extends Actor with ActorLogging { def receive = {
source share