Skip to content

Commit

Permalink
update nakama-js-protobuf to canonical examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam committed Jan 12, 2021
1 parent 5b75d6b commit 4346558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/nakama-js-protobuf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Nakama JavaScript Protobuf adapter
2. Pass the Protobuf adapter alongside your connection credentials to build the client object.

```js
// <script src="path/to/nakama-js.iife.js"></script>
// <script src="path/to/nakama-js-protobuf.iife.js"></script>
import {Client} from "@heroiclabs/nakama-js";
import {WebSocketAdapterPb} from "@heroiclabs/nakama-js-protobuf"
var useSSL = false; // Enable if server is run with an SSL certificate.
var client = new nakamajs.Client("defaultkey", "127.0.0.1", 7350, useSSL, new nakamajsprotobuf.WebSocketAdapterPb());
var client = new Client("defaultkey", "127.0.0.1", 7350, useSSL, new WebSocketAdapterPb());
```
3. Create and use the WebSocket:
Expand Down
2 changes: 0 additions & 2 deletions packages/nakama-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ To release onto NPM if you have access to the "@heroiclabs" organization you can
yarn workspace <workspace> run build && yarn workspace <workspace> npm publish --access=public
```
You can use `yarn workspaces foreach <cmd>` to do this for each NPM package distributed by this repository.
### License
This project is licensed under the [Apache-2 License](https://github.com/heroiclabs/nakama-js/blob/master/LICENSE).

0 comments on commit 4346558

Please sign in to comment.