prototype of ping pong websocket (ai generated)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user