summaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/client.go b/client.go
index d0716b1..d9a0f25 100644
--- a/client.go
+++ b/client.go
@@ -26,7 +26,14 @@ func (h *ClientHandler) ServiceConnection(proxyconn net.Conn) {
26 26
27 log.Println("Connected to server") 27 log.Println("Connected to server")
28 28
29 serviceBoth(wsconn, proxyconn, h.Context) 29 errc := make(chan error)
30 ws := &WebsocketReadWriter{wsconn}
31
32 go serviceBoth(proxyconn, ws, errc)
33 go serviceBoth(ws, proxyconn, errc)
34
35 <-errc
36 log.Println("Closing client connection")
30} 37}
31 38
32func (h *ClientHandler) Run() { 39func (h *ClientHandler) Run() {