Skip to content

Commit

Permalink
Merge pull request #85 from psychedelicious/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
gajus authored Mar 12, 2024
2 parents 6e32752 + b918229 commit f8465b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit f8465b7

Please sign in to comment.