From 0e99de92d7970da708fb60f3c8b34d960cc59993 Mon Sep 17 00:00:00 2001 From: wolfy01 <45273698+wolfy01@users.noreply.github.com> Date: Mon, 23 Dec 2019 13:34:46 -0500 Subject: [PATCH 1/3] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffcaa85..fae94e1 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,12 @@ For example, to connect to Multiplayer Piano's server (which requires an origin ``` ws://localhost:8080/?target=ws://www.multiplayerpiano.com:443&origin=http://www.multiplayerpiano.com ``` - +Example: To use with MPP in browser, paste into console: +```js +MPP.client.stop(); +MPP.client.uri = "ws://localhost:8080/?target=ws://www.multiplayerpiano.com:443&origin=http://www.multiplayerpiano.com"; +MPP.client.start(); +``` Query parameters may or may not be encoded, but querystring chars (`&` and `=`) must be encoded to escape them. **Note:** If the `target` is missing or invalid, or if an error occurs when connecting to the remote host (such as if it responded with a 403), your connection is simply closed. Ideally, the proxy server would wait for the connection to the target to finish, before responding to the client with the same response of the target; however, I found this much too complicated to set up, so I just kept it simple. -- 2.43.0 From fa028e4af044cb533e55ab75c4dd85ddc7fa0ba0 Mon Sep 17 00:00:00 2001 From: Lamp Date: Sun, 19 Apr 2020 10:27:52 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffcaa85..0aba070 100644 --- a/README.md +++ b/README.md @@ -69,4 +69,6 @@ ws://localhost:8080/?target=ws://www.multiplayerpiano.com:443&origin=http://www. Query parameters may or may not be encoded, but querystring chars (`&` and `=`) must be encoded to escape them. -**Note:** If the `target` is missing or invalid, or if an error occurs when connecting to the remote host (such as if it responded with a 403), your connection is simply closed. Ideally, the proxy server would wait for the connection to the target to finish, before responding to the client with the same response of the target; however, I found this much too complicated to set up, so I just kept it simple. +# Issues + +If the `target` is missing or invalid, or if an error occurs when connecting to the remote host (such as if it responded with a 403), your connection is simply closed. Ideally, the proxy server would wait for the connection to the target to finish, before responding to the client with the same response of the target; however, I found this much too complicated to set up, so I just kept it simple. -- 2.43.0 From 61ca9d54d2a40a136a6374fa979e528950f52631 Mon Sep 17 00:00:00 2001 From: Lamp Date: Sun, 19 Apr 2020 10:29:42 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0aba070..6212d2b 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,6 @@ ws://localhost:8080/?target=ws://www.multiplayerpiano.com:443&origin=http://www. Query parameters may or may not be encoded, but querystring chars (`&` and `=`) must be encoded to escape them. -# Issues +## Issues If the `target` is missing or invalid, or if an error occurs when connecting to the remote host (such as if it responded with a 403), your connection is simply closed. Ideally, the proxy server would wait for the connection to the target to finish, before responding to the client with the same response of the target; however, I found this much too complicated to set up, so I just kept it simple. -- 2.43.0