Skip to content

Commit

Permalink
Merge pull request #12 from theckman/remove_print
Browse files Browse the repository at this point in the history
Remove print statements that look to have been for debugging
  • Loading branch information
rushmorem committed Feb 11, 2018
2 parents db218ee + 481693b commit df9effc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions connection.go
Expand Up @@ -4,14 +4,14 @@ import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"github.com/gorilla/websocket"
"net"
"net/http"
"net/url"
"os"
"strings"
"time"

"github.com/gorilla/websocket"
)

// Clients include the necessary info to connect to the server and the underlying socket
Expand Down Expand Up @@ -45,7 +45,7 @@ func (c *Client) Exec(req *Request) ([]byte, error) {
if err != nil {
return nil, err
}
fmt.Println(string(requestMessage))

// Open a TCP connection
if err = c.Ws.WriteMessage(websocket.BinaryMessage, requestMessage); err != nil {
print("error", err)
Expand Down Expand Up @@ -95,7 +95,6 @@ func (c *Client) ReadResponse() (data []byte, err error) {
return

default:
fmt.Println(res)
if msg, exists := ErrorMsg[res.Status.Code]; exists {
err = errors.New(msg)
} else {
Expand Down

0 comments on commit df9effc

Please sign in to comment.