Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
man90es committed Nov 14, 2022
1 parent 90c1f9c commit df97677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import FKClient from "@bakaso/fkclient"
const client = new FKClient("http://127.0.0.1:6749")

// Subscribe to the message types you wish to handle
client.addListener(
client.addInMessageListener(
// Filter function
(message) => "boards" === message.what?.request,
msg => "boards" === message.what.request,
// Handler
(message) => console.log("Received a reply message regarding some boards:", message.data)
msg => console.log("Received a reply message regarding some boards:", message.data)
)

// Make your requests
Expand Down

0 comments on commit df97677

Please sign in to comment.