mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
silence NoOBSWS
This commit is contained in:
parent
882c031f86
commit
0bc814a38b
1 changed files with 4 additions and 4 deletions
|
@ -96,7 +96,7 @@ func _poll_socket() -> void:
|
||||||
|
|
||||||
func _handle_packet(packet: PackedByteArray) -> void:
|
func _handle_packet(packet: PackedByteArray) -> void:
|
||||||
var message = Message.from_json(packet.get_string_from_utf8())
|
var message = Message.from_json(packet.get_string_from_utf8())
|
||||||
print("got message with code ", message.op_code)
|
#print("got message with code ", message.op_code)
|
||||||
_handle_message(message)
|
_handle_message(message)
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ func _handle_message(message: Message) -> void:
|
||||||
event_received.emit(message)
|
event_received.emit(message)
|
||||||
|
|
||||||
Enums.WebSocketOpCode.REQUEST_RESPONSE:
|
Enums.WebSocketOpCode.REQUEST_RESPONSE:
|
||||||
print("Req Response")
|
#print("Req Response")
|
||||||
var id = message.get_data().get("request_id")
|
var id = message.get_data().get("request_id")
|
||||||
if id == null:
|
if id == null:
|
||||||
error.emit("Received request response, but there was no request id field.")
|
error.emit("Received request response, but there was no request id field.")
|
||||||
|
@ -165,8 +165,8 @@ func _authenticate(message: Message, password: String) -> void:
|
||||||
var m = Message.new()
|
var m = Message.new()
|
||||||
m.op_code = Enums.WebSocketOpCode.IDENTIFY
|
m.op_code = Enums.WebSocketOpCode.IDENTIFY
|
||||||
m._d["authentication"] = auth_string
|
m._d["authentication"] = auth_string
|
||||||
print("MY RESPONSE: ")
|
#print("MY RESPONSE: ")
|
||||||
print(m)
|
#print(m)
|
||||||
_send_message(m)
|
_send_message(m)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue