Expose the id of the user that sent a socket via the API

This commit is contained in:
2021-04-26 11:27:21 +02:00
parent 86b0162c9c
commit 6a5190b0a8
2 changed files with 23 additions and 13 deletions

View File

@@ -1,9 +1,11 @@
## In development
### New features
- The `this` value of functions now contains the id of the user that triggered the function execution.
### Bugfixes
- When an invalid user id is specified socketlib will now throw the correct error message.
## 1.0.3
### Bugfixes
- `executeFor` functions will no longer fail with an exception if a function scheduled to be called by the local user throws.