MCPcopy Create free account
hub / github.com/koding/kite / Run

Method Run

tunnelproxy/tunnel.go:40–44  ·  view source on GitHub ↗
(remoteConn sockjs.Session)

Source from the content-addressed store, hash-verified

38}
39
40func (t *Tunnel) Run(remoteConn sockjs.Session) {
41 close(t.startChan)
42 <-JoinStreams(SessionReadWriteCloser{t.localConn}, SessionReadWriteCloser{remoteConn})
43 t.Close()
44}
45
46func JoinStreams(local, remote io.ReadWriteCloser) chan error {
47 errc := make(chan error, 2)

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.95
JoinStreamsFunction · 0.85

Tested by

no test coverage detected