static void didReceiveMessage(WKConnectionRef, WKStringRef messageName, WKTypeRef messageBody, const void* clientInfo)
{
+ ALLOW_DEPRECATED_DECLARATIONS_BEGIN
auto connection = (__bridge WKConnection *)clientInfo;
+ ALLOW_DEPRECATED_DECLARATIONS_END
auto delegate = connection->_delegate.get();
if ([delegate respondsToSelector:@selector(connection:didReceiveMessageWithName:body:)]) {
static void didClose(WKConnectionRef, const void* clientInfo)
{
+ ALLOW_DEPRECATED_DECLARATIONS_BEGIN
auto connection = (__bridge WKConnection *)clientInfo;
+ ALLOW_DEPRECATED_DECLARATIONS_END
auto delegate = connection->_delegate.get();
if ([delegate respondsToSelector:@selector(connectionDidClose:)])