From b91822988d4b66a4d883a11be3662f0b16738ee4 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:57:13 +1100 Subject: [PATCH] Update README.md Use new `MessageSerializer` type in `Overriding message serializer` example. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c221e09..3a784c9 100644 --- a/README.md +++ b/README.md @@ -576,12 +576,12 @@ You can override this serializer by defining `ROARR.serializeMessage`: ```ts import type { - MessageEventHandler, + MessageSerializer, } from 'roarr'; const ROARR = globalThis.ROARR = globalThis.ROARR || {}; -const serializeMessage: MessageEventHandler = (message) => { +const serializeMessage: MessageSerializer = (message) => { return JSON.stringify(message); };