Fix non-chat empty messages
Only refuse to send empty message data to the server if it is chat data. All other data types can be sent with an empty message (eg, ping).
This commit is contained in:
parent
07589e7099
commit
b4ae3fa9f8
@ -224,7 +224,7 @@ func recieve(v []js.Value) {
|
||||
}
|
||||
|
||||
func websocketSend(msg string, dataType common.ClientDataType) error {
|
||||
if strings.TrimSpace(msg) == "" {
|
||||
if strings.TrimSpace(msg) == "" && dataType == common.CdMessage {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user