Problems with android multiplayer game. (Websocketclient)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FloweyenCodes

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")

What are the problems?

avnih | 2021-05-16 11:49