update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name = "msghandler"
|
name = "msghandler"
|
||||||
uuid = "f2724d33-f338-4a57-b9f8-1be882570d10"
|
uuid = "f2724d33-f338-4a57-b9f8-1be882570d10"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
authors = ["narawat <narawat@gmail.com>"]
|
authors = ["narawat <narawat@gmail.com>"]
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|||||||
+1
-1
@@ -639,7 +639,7 @@ function _serialize_data(data::Any, payload_type::String)
|
|||||||
json_obj = JSON.parse(json_str_2)
|
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__
|
@info "msghandler _serialize_data() 1" @__LINE__
|
||||||
data_bytes = Vector{UInt8}(string(data)) # Convert string to UTF-8 bytes
|
data_bytes = Vector{UInt8}(string(data)) # Convert string to UTF-8 bytes
|
||||||
return data_bytes
|
return data_bytes
|
||||||
|
|||||||
Reference in New Issue
Block a user