Skip to content

Fixed Server.scala to use the configured port#2

Open
javadba wants to merge 1 commit intoScalaConsultants:masterfrom
javadba:FixHardcodedPort
Open

Fixed Server.scala to use the configured port#2
javadba wants to merge 1 commit intoScalaConsultants:masterfrom
javadba:FixHardcodedPort

Conversation

@javadba
Copy link
Copy Markdown

@javadba javadba commented Jun 22, 2016

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant