add logging
This commit is contained in:
@@ -104,6 +104,8 @@
|
|||||||
- (void)socket:(GCDAsyncSocket *)asyncSocket didReadData:(NSData *)data withTag:(long)tag {
|
- (void)socket:(GCDAsyncSocket *)asyncSocket didReadData:(NSData *)data withTag:(long)tag {
|
||||||
NSUInteger nextOpCode = [[self valueForKey:@"nextOpCode"] unsignedIntValue]; // sheesh.
|
NSUInteger nextOpCode = [[self valueForKey:@"nextOpCode"] unsignedIntValue]; // sheesh.
|
||||||
|
|
||||||
|
NSLog(@"tag: %ld, nextOpCode: %ld", tag, nextOpCode);
|
||||||
|
|
||||||
// Handle our custom ping/pong tags
|
// Handle our custom ping/pong tags
|
||||||
if (tag == TAG_PING_PAYLOAD) {
|
if (tag == TAG_PING_PAYLOAD) {
|
||||||
// We've read the ping payload, now send the pong response
|
// We've read the ping payload, now send the pong response
|
||||||
|
|||||||
Reference in New Issue
Block a user