Skip to content

Commit

Permalink
added remark that a listener can only be removed completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Hundemeier committed Jun 30, 2021
1 parent df8aed6 commit a955632
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ Functions:
The callback should have one argument: `callback(packet)`
* `packet: DataPacket`: the received DataPacket with all information
* `remove_listener(<callback>)`: removes a previously registered listener regardless of the trigger.
This means a listener can only be removed completely, even if it was listening to multiple universes.
If the function never was registered, nothing happens. Note: if a function was registered multiple times, this remove function needs to be called only once.

### DataPacket
Expand Down

0 comments on commit a955632

Please sign in to comment.