diff --git a/docs/tutorial/07-api-overview.md b/docs/tutorial/07-api-overview.md index deef7fc8..d45ecb96 100644 --- a/docs/tutorial/07-api-overview.md +++ b/docs/tutorial/07-api-overview.md @@ -283,6 +283,15 @@ socket.onAny((eventName, ...args) => { }); ``` +Similarly, for outgoing packets: + +```js +socket.onAnyOutgoing((eventName, ...args) => { + console.log(eventName); // 'hello' + console.log(args); // [ 1, '2', { 3: '4', 5: ArrayBuffer (1) [ 6 ] } ] +}); +``` + ## Server API ### Broadcasting