From d7b66ea6a13cfee14d4dedbec5a9e7336bf6cf21 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Wed, 30 Aug 2023 23:19:55 +0530 Subject: [PATCH] Refactored readme with channel publishAsync doc properly --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c489e184..082412b6e 100644 --- a/README.md +++ b/README.md @@ -346,8 +346,8 @@ catch(AblyException ablyError) } ``` -- When published message is a dotnet object instance, internal newtonsoft will apply default serialization settings. -- If received message has unwanted serialization, publish it as a serialized string instead by applying custom serialization settings externally. +- When calling `channel.PublishAsync` with a dotnet object instance as the message data, the library will use the Newtonsoft Json.NET library to serialize the message with default serialization settings. +- If you need to use custom seralization settings, you can apply the serialization yourself and send the resulting string as the message data: ```csharp var serializedData = JsonConvert.SerializeObject(message,