See link
Based on the following function, I can get an answer,
func client(client: PubNub!, didReceiveMessage message: PNMessageResult!) { println(message)
But I can access the data only as message.data, which is in PNMessageData format.
Even this returns data in the following format:
{ message = "{}"; subscribedChannel = 123; timetoken = 14392105288780634;}
How do I access the message value inside message.data (PNMessageData)?
source share