Instead of implementing an ActorPublisher yourself you can use Sink.actorRef and Source.actorRef to make an actor both the incoming and outgoing "endpoint" for messages on a web socket, and then Flow.wrap(in, out) to get a Flow which is what handleWebsocketMessages wants as a parameter.
Johannes Rudolph has got a nice little akka-http web socket chat app that you could look at here: https://github.com/jrudolph/akka-http-scala-js-websocket-chat It isn't exactly sending periodic messages, but I think it might be interesting to you none the less. -- Johan Andrén Typesafe - Reactive apps on the JVM Twitter: @apnylle -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
