Skip to content

Commit 955bcdc

Browse files
committed
Remove seqnum signal
1 parent e6fc87a commit 955bcdc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addons/disdot/examples/dev.tscn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ var states := PackedStringArray([\"Connecting\", \"Open\", \"Closing\", \"Closed
8989

9090
func _ready() -> void:
9191
disdot._socket.state_changed.connect(update_status)
92-
disdot.seqnum.connect(update_seq)
9392
update_status(disdot._socket.s.get_ready_state())
9493

94+
func _process(_dt: float) -> void:
95+
if str(disdot._last_seq) == seq_label.text: return
96+
update_seq(disdot._last_seq)
97+
9598
func update_status(state: WebSocketPeer.State) -> void:
9699
status_label.text = \"Status: \" + states[state]
97100

addons/disdot/src/disdot.gd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ class_name Disdot
33

44
signal starting
55
signal stopping
6-
signal seqnum(seq: int)
76

87
class EventType:
98
const READY := "READY"
@@ -226,7 +225,6 @@ func _update_seq(num: int) -> void:
226225
push_warning("Missed a sequence number!")
227226

228227
_last_seq = num
229-
seqnum.emit(num)
230228
if verbose: print_rich("[color=gray]Sequence number: ", num, "[/color]")
231229

232230
func update_commands() -> void:

0 commit comments

Comments
 (0)