소스 검색

Moved session close func to discord.go

Bruce Marriner 9 년 전
부모
커밋
1a5c4b7b0d
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      wsapi.go

+ 0 - 5
wsapi.go

@@ -136,11 +136,6 @@ func (s *Session) Listen() (err error) {
 // Not sure how needed this is and where it would be best to call it.
 // somewhere.
 
-// Close closes the connection to the websocket.
-func (s *Session) Close() {
-	s.wsConn.Close()
-}
-
 func unmarshalEvent(event Event, i interface{}) (err error) {
 	if err = json.Unmarshal(event.RawData, i); err != nil {
 		fmt.Println(event.Type, err)