and neither work. I’ve even tried copying/pasting the character into the gdscript but nothing shows up (It shows up in VSCode though) and it doesn’t work either.
What am I doing wrong? Does gdscript just not let you send this character over websockets?
Managed to solve it after sleeping on it, I think the message was just sending too fast. In case anyone else uses SignalR and has this issue - here’s my code:
func connect_to_server():
var err = websocket.connect_to_url(server_url)
if err != OK:
print("Failed to connect: ", err, " | WebSocket State: ", websocket.get_ready_state())
else:
await get_tree().create_timer(2.0).timeout
var handshake = '{"protocol":"json","version":1}%c'
handshake = handshake % String.chr(30)
websocket.send_text(handshake)