From 95186f3721402d4868aeb2389c122590fea00c2b Mon Sep 17 00:00:00 2001 From: ScRiPt1337 <26287773+ScRiPt1337@users.noreply.github.com> Date: Sun, 2 May 2021 21:22:27 +0530 Subject: [PATCH] fix example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9deeaa1..ae99a5c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Initalize the server in the `componentWillMount` lifecycle method. You need to p componentWillMount() { // initalize the server (now accessible via localhost:1234) - httpBridge.start(5561, 'http_service' request => { + httpBridge.start(5561, 'http_service', (request) => { // you can use request.url, request.type and request.postData here if (request.type === "GET" && request.url.split("/")[1] === "users") {