TCP Sample Service

The TCP sample service is a simple echo service. Feel free to use it when first trying out Testable to better understand how the platform works.

The service is accessible at

Example Scala client:


object GatewayEchoTestClient extends App {
  val socket = new Socket("", 8091)
  var in = socket.getInputStream
  val out = new PrintStream(socket.getOutputStream)

  out.print("This is some test data!")
  val data = new Array[Byte](100)

  println("Client received: " + new String(data))

This prints the following result:

This is some test data!