# TCGBSocketRocketWrapper Class Reference

Inherits from | NSObject
Conforms to | GBSRWebSocketDelegate
Declared in | TCGBSocketRocketWrapper.h TCGBSocketRocketWrapper.m

### `– reconnectWithCompletion:`

handler 안에 completion handler가 들어가 있는 상태에서 재 초기화 시도 시에는 Socket_Closed 에러 리턴

`- (void)reconnectWithCompletion:(socketOpenHandler)completion`

#### Declared In

`TCGBSocketRocketWrapper.m`

### `– webSocket:didFailWithError:`

connect 시에도 이쪽으로 오류 발생

`- (void)webSocket:(GBSRWebSocket *)webSocket didFailWithError:(NSError *)error`

#### Declared In

`TCGBSocketRocketWrapper.m`