StartClient will copy the data from stdin/stdout over a WebSocket connection to the edge (originURL)
(conn Connection, stream io.ReadWriter, options *StartOptions)
| 75 | // StartClient will copy the data from stdin/stdout over a WebSocket connection |
| 76 | // to the edge (originURL) |
| 77 | func StartClient(conn Connection, stream io.ReadWriter, options *StartOptions) error { |
| 78 | return conn.ServeStream(options, stream) |
| 79 | } |
| 80 | |
| 81 | // Serve accepts incoming connections on the specified net.Listener. |
| 82 | // Each connection is handled in a new goroutine: its data is copied over a |