diff --git a/packages/rsocket-examples/package.json b/packages/rsocket-examples/package.json index b8202e2a..6fe4012c 100644 --- a/packages/rsocket-examples/package.json +++ b/packages/rsocket-examples/package.json @@ -39,7 +39,7 @@ "rsocket-tcp-server": "^1.0.0-alpha.3", "rsocket-websocket-client": "^1.0.0-alpha.3", "rsocket-websocket-server": "^1.0.0-alpha.3", - "ws": "~8.2.3" + "ws": "^8.18" }, "devDependencies": { "rimraf": "~3.0.2", diff --git a/packages/rsocket-examples/src/webpack/browser-bundle/README.md b/packages/rsocket-examples/src/webpack/browser-bundle/README.md index 62989e16..b964b41a 100644 --- a/packages/rsocket-examples/src/webpack/browser-bundle/README.md +++ b/packages/rsocket-examples/src/webpack/browser-bundle/README.md @@ -8,8 +8,8 @@ browser context without NPM or other bundling tools. __rsocket.js__ -[rsocket.js](./rsocket.js) demonstrates how to write a "library" that exposes functionality for creating an RSocket -connection using the WebSocket transport. Aditionally this "library" exposes a function for creating a buffer from a +[src/rsocket.js](src/rsocket.js) demonstrates how to write a "library" that exposes functionality for creating an RSocket +connection using the WebSocket transport. Additionally this "library" exposes a function for creating a buffer from a given value. For your own use cases you will likely need to alter the implementation to expose the functionality you need. @@ -17,15 +17,15 @@ For your own use cases you will likely need to alter the implementation to expos __webpack.config.js__ [webpack.config.js](./webpack.config.js) demonstrates how to configure webpack to create a library file which exposes the exports -from the [./rsocket.js](./rsocket.js) in the global scope of any HTML file which loads the built library file. +from the [src/rsocket.js](src/rsocket.js) in the global scope of any HTML file which loads the built library file. __index.html__ -[index.html](./index.html) demonstrates how to use the global `rsocket` variable which is exposed by the `rsocket.js` library built by Webpack. +[src/app.js](src/app.js) demonstrates how to use the global `rsocket` variable which is exposed by the `rsocket.js` library built by Webpack. -Note: `index.html` does not show how to load the built `rsocket.js` file as that will be up to you/your implementation to decide. +Note: `src/index.html` does not show how to load the built `rsocket.js` file as that will be up to you/your implementation to decide. -Note: when running the `serve` npm script webpack will automatically host the `index.html` file and inject the `rsocket.js` script into the `
-` block. +Note: For this example, when running the `serve` npm script webpack will automatically host the `index.html` file and inject the `rsocket.js` and `app.js` scripts into the footer of the page. ## Run the server diff --git a/packages/rsocket-examples/src/webpack/browser-bundle/index.html b/packages/rsocket-examples/src/webpack/browser-bundle/index.html deleted file mode 100644 index 50ffb121..00000000 --- a/packages/rsocket-examples/src/webpack/browser-bundle/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - -
- -
- -