code: func WSWrite(ws *websocket.Conn) {
  	scanner := bufio.NewScanner(os.Stdin)
  	for scanner.Scan() {
  		t := scanner.Text()
  		ws.Write([]byte(t))
  		fmt.Printf(">> %s\n", t)
  	}
  }
docs: // WSWrite sends STDIN lines to a websocket server.