Skip to content
Snippets Groups Projects
Commit 2f040e01 authored by George Nachman's avatar George Nachman
Browse files

Add some logging

parent 219342a6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -324,6 +324,7 @@ const char *kWebSocketConnectionHandleAssociatedObjectKey = "kWebSocketConnectio
// Runs on main queue, either in or not in a transaction.
- (void)dispatchRequest:(ITMRequest *)request connection:(iTermWebSocketConnection *)webSocketConnection {
__weak __typeof(self) weakSelf = self;
DLog(@"Got request %@", request);
if (request.hasTransactionRequest) {
if (request.transactionRequest.begin) {
ITMResponse *response = [[ITMResponse alloc] init];
Loading
Loading
@@ -468,6 +469,7 @@ const char *kWebSocketConnectionHandleAssociatedObjectKey = "kWebSocketConnectio
- (void)webSocketConnection:(iTermWebSocketConnection *)webSocketConnection didReadFrame:(iTermWebSocketFrame *)frame {
if (frame.opcode == iTermWebSocketOpcodeBinary) {
ITMRequest *request = [ITMRequest parseFromData:frame.payload error:nil];
NSLog(@"Dispatch %@", request);
if (request) {
DLog(@"Received request: %@", request);
__weak __typeof(self) weakSelf = self;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment