Private
Public Access
1
0

prototype of ping pong websocket (ai generated)

This commit is contained in:
2025-06-13 13:26:15 -07:00
parent 1a5bb874dc
commit 78eb946109
4 changed files with 267 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
#import "IMChat+Encoded.h"
#import "MBIMHTTPConnection.h"
#import "MBIMURLUtilities.h"
#import "MBIMPingPongWebSocket.h"
#import <CocoaHTTPServer/GCDAsyncSocket.h>
#import <CocoaHTTPServer/HTTPMessage.h>
@@ -105,7 +106,7 @@ static const NSUInteger kUpdateItemsCullingLength = 100;
- (WebSocket *)vendUpdateWebSocketConsumerForRequest:(HTTPMessage *)request socket:(GCDAsyncSocket *)gcdSocket
{
WebSocket *socket = [[WebSocket alloc] initWithRequest:request socket:gcdSocket];
WebSocket *socket = [[MBIMPingPongWebSocket alloc] initWithRequest:request socket:gcdSocket];
socket.delegate = self;
MBIMUpdateConsumer consumer = ^(NSArray<MBIMUpdateItem *> *updates) {