Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2016 04:13
What would you like to do?
Get port the server is running on. JettyExample |
import org.eclipse.jetty.server.{NetworkConnector, Server}
object JettyExample{
def port() = {
val conn = server.getConnectors()(0).asInstanceOf[NetworkConnector]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment