This commit is contained in:
2026-07-05 20:11:19 +07:00
parent a10e4ddb89
commit 69ccb9990f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -639,7 +639,7 @@ function _serialize_data(data::Any, payload_type::String)
json_obj = JSON.parse(json_str_2)
"""
if data <: AbstractString # Text data - convert to UTF-8 bytes
if payload_type == "text" # Text data - convert to UTF-8 bytes
@info "msghandler _serialize_data() 1" @__LINE__
data_bytes = Vector{UInt8}(string(data)) # Convert string to UTF-8 bytes
return data_bytes