websocket-akka-http icon indicating copy to clipboard operation
websocket-akka-http copied to clipboard

Fixed Server.scala to use the configured port

Open javadba opened this issue 9 years ago • 0 comments

When the with-client command line option is used and a non default port were set in the src/main/resources/application.conf then the client can not connect to the server.

So: simply change hardcoded 8080 to the already available "port" variable

  val c: WSClient = WSClient(s"http://localhost:${port}/ws-chat/123?name=HAL1000", "HAL1000")

javadba avatar Jun 22 '16 20:06 javadba