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 sample.testable.io:8091.

Example Scala client:

import java.io.PrintStream
import java.net.Socket

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

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

  println("Client received: " + new String(data))
  socket.close
}

This prints the following result:

This is some test data!