diff --git a/PubNubUnity/Assets/PubNub/Runtime/Plugins/PubnubApiUnity.dll b/PubNubUnity/Assets/PubNub/Runtime/Plugins/PubnubApiUnity.dll index 47c3c734..61052c87 100644 Binary files a/PubNubUnity/Assets/PubNub/Runtime/Plugins/PubnubApiUnity.dll and b/PubNubUnity/Assets/PubNub/Runtime/Plugins/PubnubApiUnity.dll differ diff --git a/PubNubUnity/Assets/PubNub/Tests/CallbackWrappers.cs b/PubNubUnity/Assets/PubNub/Tests/CallbackWrappers.cs index 36da93c9..2123d3d0 100644 --- a/PubNubUnity/Assets/PubNub/Tests/CallbackWrappers.cs +++ b/PubNubUnity/Assets/PubNub/Tests/CallbackWrappers.cs @@ -8,342 +8,342 @@ public class CallbackWrappers : PNTestBase { private readonly string[] channels = new[] { "test" }; private string channel => channels[0]; - [UnityTest] - public IEnumerator Fire() { - pn.Fire().Channel(channel).Message("test").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } - - [UnityTest] - public IEnumerator Signal() { - pn.Signal().Channel(channel).Message("test").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator Fire() { + // pn.Fire().Channel(channel).Message("test").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator ListFiles() { - // PNStatus status = null; - // float startTime = Time.time; - // pn.ListFiles().Channel(channel).Execute(((result, pnStatus) => status = pnStatus)); - // yield return new WaitUntil(() => status == null || Time.time > startTime + 10f); - // Assert.IsFalse(status.Error); + // [UnityTest] + // public IEnumerator Signal() { + // pn.Signal().Channel(channel).Message("test").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - pn.ListFiles().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator ListFiles() { + // // PNStatus status = null; + // // float startTime = Time.time; + // // pn.ListFiles().Channel(channel).Execute(((result, pnStatus) => status = pnStatus)); + // // yield return new WaitUntil(() => status == null || Time.time > startTime + 10f); + // // Assert.IsFalse(status.Error); + + // pn.ListFiles().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetFileUrl() { - pn.GetFileUrl().Channel(channel).FileId("").FileName("") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsTrue(s.Error); - Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); - } + // [UnityTest] + // public IEnumerator GetFileUrl() { + // pn.GetFileUrl().Channel(channel).FileId("").FileName("") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsTrue(s.Error); + // Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); + // } - [UnityTest] - public IEnumerator SendFile() { - pn.SendFile().Channel(channel).FileName("test").Message("test").File(new byte[] { 0x00 }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SendFile() { + // pn.SendFile().Channel(channel).FileName("test").Message("test").File(new byte[] { 0x00 }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator DownloadFile() { - pn.DownloadFile().Channel(channel).FileName("").FileId("") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsTrue(s.Error); - Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); - } + // [UnityTest] + // public IEnumerator DownloadFile() { + // pn.DownloadFile().Channel(channel).FileName("").FileId("") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsTrue(s.Error); + // Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); + // } - [UnityTest] - public IEnumerator PublishFileMessage() { - pn.PublishFileMessage().Channel(channel).FileName("").FileId("").Message("test") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsTrue(s.Error); - Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); - } + // [UnityTest] + // public IEnumerator PublishFileMessage() { + // pn.PublishFileMessage().Channel(channel).FileName("").FileId("").Message("test") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsTrue(s.Error); + // Assert.IsTrue(s.ErrorData.Information.Contains("Missing")); + // } - [UnityTest] - public IEnumerator FetchHistory() { - pn.FetchHistory().Channels(channels).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator FetchHistory() { + // pn.FetchHistory().Channels(channels).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator WhereNow() { - pn.WhereNow().Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator WhereNow() { + // pn.WhereNow().Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetChannelMembers() { - pn.GetChannelMembers().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetChannelMembers() { + // pn.GetChannelMembers().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator SetChannelMemberships() { - pn.SetChannelMembers().Channel(channel) - .Uuids(new List() { new PNChannelMember() { Uuid = "test" } }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SetChannelMemberships() { + // pn.SetChannelMembers().Channel(channel) + // .Uuids(new List() { new PNChannelMember() { Uuid = "test" } }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetMessageActions() { - pn.GetMessageActions().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetMessageActions() { + // pn.GetMessageActions().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator HereNow() { - pn.HereNow().Channels(channels).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator HereNow() { + // pn.HereNow().Channels(channels).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator AddMessageAction() { - pn.AddMessageAction().Channel(channel).Action(new PNMessageAction() { Type = "test", Value = "test" }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; + // [UnityTest] + // public IEnumerator AddMessageAction() { + // pn.AddMessageAction().Channel(channel).Action(new PNMessageAction() { Type = "test", Value = "test" }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; - Assert.IsTrue(!s.Error || s.ErrorData.Information.Contains("Already Added")); - } + // Assert.IsTrue(!s.Error || s.ErrorData.Information.Contains("Already Added")); + // } - [UnityTest] - public IEnumerator RemoveMessageAction() { - pn.RemoveMessageAction().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsTrue(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveMessageAction() { + // pn.RemoveMessageAction().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsTrue(s.Error); + // } - [UnityTest] - public IEnumerator SetMemberships() { - pn.SetMemberships().Channels(new List() { new PNMembership() { Channel = "test" } }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SetMemberships() { + // pn.SetMemberships().Channels(new List() { new PNMembership() { Channel = "test" } }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetMemberships() { - pn.GetMemberships().Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetMemberships() { + // pn.GetMemberships().Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveMemberships() { - pn.RemoveMemberships().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveMemberships() { + // pn.RemoveMemberships().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator SetChannelMetadata() { - pn.SetChannelMetadata().Channel(channel).Name("testname") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SetChannelMetadata() { + // pn.SetChannelMetadata().Channel(channel).Name("testname") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetChannelMetadata() { - pn.GetChannelMetadata().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetChannelMetadata() { + // pn.GetChannelMetadata().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveChannelMetadata() { - pn.RemoveChannelMetadata().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveChannelMetadata() { + // pn.RemoveChannelMetadata().Channel(channel).Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator AuditPushChannel() { - pn.AuditPushChannelProvisions().Environment(PushEnvironment.Development).Topic("test") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator AuditPushChannel() { + // pn.AuditPushChannelProvisions().Environment(PushEnvironment.Development).Topic("test") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetAllChannelMetadata() { - pn.GetAllChannelMetadata().Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetAllChannelMetadata() { + // pn.GetAllChannelMetadata().Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveChannelMembers() { - pn.RemoveChannelMembers().Channel(channel).Uuids(new List() { "test" }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveChannelMembers() { + // pn.RemoveChannelMembers().Channel(channel).Uuids(new List() { "test" }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveUuidMetadata() { - pn.RemoveUuidMetadata().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveUuidMetadata() { + // pn.RemoveUuidMetadata().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator SetUuidMetadata() { - pn.SetUuidMetadata().Uuid("test").Name("testname").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SetUuidMetadata() { + // pn.SetUuidMetadata().Uuid("test").Name("testname").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetUuidMetadata() { - pn.GetUuidMetadata().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetUuidMetadata() { + // pn.GetUuidMetadata().Uuid("test").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator GetAllUuidMetadata() { - pn.GetAllUuidMetadata().Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator GetAllUuidMetadata() { + // pn.GetAllUuidMetadata().Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveAllPushNotificationsFromDeviceWithPushToken() { - pn.RemoveAllPushNotificationsFromDeviceWithPushToken().Environment(PushEnvironment.Development) - .Topic("test") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveAllPushNotificationsFromDeviceWithPushToken() { + // pn.RemoveAllPushNotificationsFromDeviceWithPushToken().Environment(PushEnvironment.Development) + // .Topic("test") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemovePushNotificationsFromChannels() { - pn.RemovePushNotificationsFromChannels().Channels(channels).Environment(PushEnvironment.Development) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemovePushNotificationsFromChannels() { + // pn.RemovePushNotificationsFromChannels().Channels(channels).Environment(PushEnvironment.Development) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator AddPushNotificationOnChannels() { - pn.AddPushNotificationsOnChannels().Channels(channels).Environment(PushEnvironment.Development) - .Topic("test") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator AddPushNotificationOnChannels() { + // pn.AddPushNotificationsOnChannels().Channels(channels).Environment(PushEnvironment.Development) + // .Topic("test") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator DeleteMessages() { - pn.DeleteMessages().Channel(channel).Start(0).End(99999999) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator DeleteMessages() { + // pn.DeleteMessages().Channel(channel).Start(0).End(99999999) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator MessageCounts() { - pn.MessageCounts().Channels(channels).ChannelsTimetoken(new long[] { 0 }) - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator MessageCounts() { + // pn.MessageCounts().Channels(channels).ChannelsTimetoken(new long[] { 0 }) + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator SetPresenceState() { - pn.SetPresenceState().Channels(channels).State(new Dictionary()).Uuid("test") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator SetPresenceState() { + // pn.SetPresenceState().Channels(channels).State(new Dictionary()).Uuid("test") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator DeleteChannelGroup() { - pn.DeleteChannelGroup().ChannelGroup("testgroup").Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator DeleteChannelGroup() { + // pn.DeleteChannelGroup().ChannelGroup("testgroup").Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator AddChannelsToGroup() { - pn.AddChannelsToChannelGroup().Channels(channels).ChannelGroup("testgroup") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator AddChannelsToGroup() { + // pn.AddChannelsToChannelGroup().Channels(channels).ChannelGroup("testgroup") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator ListChannelGroups() { - pn.ListChannelGroups().Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator ListChannelGroups() { + // pn.ListChannelGroups().Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } - [UnityTest] - public IEnumerator RemoveChannelsFromChannelGroup() { - pn.RemoveChannelsFromChannelGroup().Channels(channels).ChannelGroup("testgroup") - .Execute(Callback(out var awaiter, out var assigner)); - yield return awaiter; - var s = assigner().status; - Assert.IsFalse(s.Error); - } + // [UnityTest] + // public IEnumerator RemoveChannelsFromChannelGroup() { + // pn.RemoveChannelsFromChannelGroup().Channels(channels).ChannelGroup("testgroup") + // .Execute(Callback(out var awaiter, out var assigner)); + // yield return awaiter; + // var s = assigner().status; + // Assert.IsFalse(s.Error); + // } // TODO re-enable // [UnityTest] diff --git a/PubNubUnity/Assets/PubNub/Tests/PNTestBase.cs b/PubNubUnity/Assets/PubNub/Tests/PNTestBase.cs index 6076283e..88e9759b 100644 --- a/PubNubUnity/Assets/PubNub/Tests/PNTestBase.cs +++ b/PubNubUnity/Assets/PubNub/Tests/PNTestBase.cs @@ -16,6 +16,7 @@ public void OneTimeSetUp() { SubscribeKey = System.Environment.GetEnvironmentVariable("SUB_KEY"), SecretKey = System.Environment.GetEnvironmentVariable("PAM_SECRET_KEY") }; + pnConfiguration.LogVerbosity = PNLogVerbosity.BODY; pn = new Pubnub(pnConfiguration); pn.AddListener(listener); diff --git a/PubNubUnity/Assets/PubNub/Tests/Publish.cs b/PubNubUnity/Assets/PubNub/Tests/Publish.cs index 7f284ff1..95cdad5a 100644 --- a/PubNubUnity/Assets/PubNub/Tests/Publish.cs +++ b/PubNubUnity/Assets/PubNub/Tests/Publish.cs @@ -9,6 +9,8 @@ public class Publish : PNTestBase { string lastMessage = null; private void OnMessage(Pubnub arg1, PNMessageResult arg2) { + Debug.Log($"Message Received. Channel: {arg2.Channel} / Message: {arg2.Message}"); + Debug.Log($"Received Message type {arg2.Message?.GetType()?.ToString()}"); lastMessage = arg2.Message as string; }