Home / Companies / PubNub / Blog / June 2014

June 2014 Summaries

2 posts from PubNub

Filter
Month: Year:
Post Summaries Back to Blog
The PubNub Cocoa SDK offers multiple methods to handle incoming messages through subscribed channels, with three primary approaches: using the PubNub singleton client delegate methods, the PNObservationCenter by adding observers, and the core foundation NotificationCenter by adding callbacks to event notifications. The PubNub singleton method involves overriding delegate methods for simple message handling but may lead to code complexity when dealing with multiple channels. The PNObservationCenter adds flexibility by allowing dynamic creation of event handlers using blocks, which improves encapsulation and simplifies logic maintenance. The core NotificationCenter provides similar functionality to PNObservationCenter but is less convenient as it lacks the simplicity of handler blocks. While the tutorial details these methods, it notes the release of an updated iOS SDK (version 4.0) that streamlines and simplifies the SDK, advising developers to refer to a migration guide for upgrading from version 3.x to 4.0.
Jun 26, 2014 1,995 words in the original blog post.
The blog post details how to implement PubNub Multiplexing in an AngularJS application, enabling efficient communication through multiple Publish/Subscribe channels using a single socket, particularly beneficial for mobile devices. It outlines the process of setting up the necessary libraries and HTML structure, using Angular to manage channel subscriptions and updates efficiently. The author highlights the advantage of using ng-click over $scope.$watch for tracking changes in channel subscription status, and explains how to integrate the PubNub functions for subscribing, unsubscribing, and publishing messages, with a focus on leveraging Angular's native capabilities to handle message events and streamline the multiplexing process. The post serves as a step-by-step guide to setting up and managing multiple channels in real-time applications like stock price apps, livecast platforms, and collaborative tools, emphasizing the ease of integration with minimal code adjustments.
Jun 24, 2014 2,203 words in the original blog post.