0 votes

I am having problems in this code, it works on pc but when i export it, it doesn't work.

extends HTTPRequest

var client : WebSocketClient
var heartbeat_interval : float
var last_sequence : float
var session_id : String
var heartbeat_ack_received := true
var invalid_session_is_resumable : bool
func _ready() -> void: randomize() client = WebSocketClient.new() client.connect_to_url("wss://gateway.discord.gg/?v=6&encoding=json") client.connect("connection_established", self, "_connection_established") client.connect("connection_closed", self, "_connection_closed") client.connect("server_close_request", self, "_server_close_request") client.connect("data_received", self, "_data_received")

Godot version Godot Engine v3.3.stable.official
in Engine by (14 points)

What are the problems?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.