This is a demonstration of using PubNub to publish custom events for chat, namely:
- Publishing message events, including
new
,update
anddelete
actions. - Publishing read-receipt events.
- Publishing typing indicator signals.
Developed in Xcode 12.0 beta 6 (12A8189n). But it should work on any recent versions of Xcode.
BTW, this repo does not include my credentials in the form of:
struct PubNubCredentials {
static let publishKey = "pub-..."
static let subscribeKey = "sub-..."
}
So please supply your own publishKey
and subscribeKey
as outlined above, to get this mockup working.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
--
6 September 2020
Copyright (c) 2020 Rob Ryan. All Rights Reserved.
See License.