Skip to content

Commit

Permalink
Add close method for the websocket connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Monoses committed Aug 7, 2015
1 parent 1bcc154 commit 209722c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func (wsc *wsConn) receive() ([]byte, error) {
return b, nil
}

func (wsc *wsConn) close() error {
return wsc.conn.Close()
}

func (wsc *wsConn) sendRequest(verb, path string, body []byte, id *uint64) error {
typ := textsecure.WebSocketMessage_REQUEST

Expand Down

0 comments on commit 209722c

Please sign in to comment.