@rbxts/tether 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,9 @@ export interface MessageData {
|
|
|
22
22
|
messageEmitter.addSerializer<Message.TOGGLE_MOVEMENT>(Message.TOGGLE_MOVEMENT);
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
> [!CAUTION]
|
|
26
|
+
> Every single message kind must implement an interface for it's data (in the example that would be the object with the `foo` and `bar` fields) as well as call `MessageEmitter.addSerializer()`. Messages will not work if you don't do this.
|
|
27
|
+
|
|
25
28
|
### Server
|
|
26
29
|
```ts
|
|
27
30
|
import { Message, messageEmitter } from "shared/messaging";
|