Skip to content

Add ANY_SERVER registration - #339

Merged
Miq1 merged 2 commits into
masterfrom
Test_check
Feb 23, 2024
Merged

Miq1 merged 2 commits into
masterfrom
Test_check

Conversation

@Miq1

@Miq1 Miq1 commented Feb 23, 2024

Copy link
Copy Markdown
Contributor

registerWorker() now will accept ANY_SERVER as a server ID.

This is potentially dangerous, as it will catch all requests to server IDs that are not covered by explicitly defined workers!
Explicitly registered workers for combinations of a distinct server ID and a function code (also ANY_FUNCTION_CODE) will have preference to the generic worker at all times.

It may be needed for some devices in the wild, though, that are (mis)using the server ID for functional purposes.

Be warned again: using ANY_SERVER may break your server's function!

ANY_SERVER still is invalid for issueing requests or attaching server IDs to a bridge.

@Miq1
Miq1 merged commit db8d8ee into master Feb 23, 2024
@Miq1
Miq1 deleted the Test_check branch February 23, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant