Skip to content

Commit

Permalink
kotlin: Add more info to messageInRaw docs
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Nov 27, 2024
1 parent ed69a4d commit 92d1dcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kotlin/lib/src/main/kotlin/Message.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,15 @@ class Message internal constructor(token: String, options: SvixOptions) {
/**
* Creates a [MessageIn] with the payload already being serialized.
*
* The payload is not normalized on the server (usually whitespace outside
* of string literals, unnecessarily escaped characters in string and such
* are fixed up by the server), and is not even required to be JSON.
*
* @param payload Serialized message payload
* @param contentType Content type of the payload to send as a header. Defaults to `application/json`.
*
* See the class documentation for details about the other parameters.
*
*/
fun messageInRaw(
eventType: String,
Expand Down

0 comments on commit 92d1dcc

Please sign in to comment.