From 51723e4c7ccfd9ceaefcd60348e5005b2182eb44 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Thu, 20 Oct 2016 18:25:40 -0700 Subject: [PATCH] removed websocket api Signed-off-by: Vishal Rana --- context.go | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/context.go b/context.go index c5a292fa..33614e5a 100644 --- a/context.go +++ b/context.go @@ -1,6 +1,7 @@ package echo import ( + "bytes" "encoding/json" "encoding/xml" "fmt" @@ -16,8 +17,6 @@ import ( "time" "golang.org/x/net/websocket" - - "bytes" ) type ( @@ -27,18 +26,12 @@ type ( // Request returns `*http.Request`. Request() *http.Request - // SetWebSocket sets `*http.Request`. + // SetRequest sets `*http.Request`. SetRequest(*http.Request) // Request returns `*Response`. Response() *Response - // WebSocket returns `*websocket.Conn`. - WebSocket() *websocket.Conn - - // SetWebSocket sets `*websocket.Conn`. - SetWebSocket(*websocket.Conn) - // IsTLS returns true if HTTP connection is TLS otherwise false. IsTLS() bool @@ -220,14 +213,6 @@ func (c *context) Response() *Response { return c.response } -func (c *context) WebSocket() *websocket.Conn { - return c.webSocket -} - -func (c *context) SetWebSocket(ws *websocket.Conn) { - c.webSocket = ws -} - func (c *context) IsTLS() bool { return c.request.TLS != nil }