Private
Public Access
1
0

add logging

This commit is contained in:
2025-06-13 14:39:24 -07:00
parent e97edc10b7
commit 1dc6f0ec1b

View File

@@ -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