This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.blogspot.wrongtracks.websocket.server; | |
import static akka.http.javadsl.server.Directives.handleWebSocketMessages; | |
import static akka.http.javadsl.server.Directives.path; | |
import java.util.concurrent.CompletionStage; | |
import akka.NotUsed; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var connection = new WebSocket('ws://localhost:8080/greeter'); | |
connection.onopen = function(){ | |
connection.send('connect'); | |
} | |
connection.onerror = function (error) { | |
console.log('WebSocket Error ' + error); | |
}; | |
connection.onmessage = function(e){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo.bar | |
import akka.actor.ActorSystem | |
import akka.testkit.TestKit | |
import org.scalatest.WordSpecLike | |
class ActorSystemSpec extends TestKit(ActorSystem("test")) | |
with WordSpecLike{ | |
"Test" must { |