Skip to content

Commit

Permalink
Refactored readme with channel publishAsync doc properly
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Aug 30, 2023
1 parent 078011d commit d7b66ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7b66ea

Please sign in to comment.