Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed May 12, 2024
1 parent e93fe06 commit 6ac8b68
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ const unsubscribe = wshe.subscribe('<eventName>', (payload) => {})

## Server implementation

You should implement a server that can handle the following message format:

```json
{
"event": "<eventName>",
"payload": "<eventPayload>"
}
```
You should implement a server to transfer messages between clients.

And do this on `onmessage` to handle heartbeat requests:

Expand Down

0 comments on commit 6ac8b68

Please sign in to comment.