Skip to content

Commit 54281e6

Browse files
semantic fix
1 parent ee716fa commit 54281e6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playpeerjs",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "WebRTC-based wrapper for creating robust peer-2-peer multiplayer systems with ease.",
55
"type": "module",
66
"main": "dist/playpeer.js",

src/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class PlayPeer {
7777
/**
7878
* Initialize new multiplayer object
7979
* @async
80-
* @returns {Promise} - Async Initialization promise
80+
* @returns {Promise} Async Initialization promise
8181
*/
8282
async init() {
8383
return new Promise((resolve, reject) => {
@@ -239,7 +239,7 @@ export default class PlayPeer {
239239
/**
240240
* Create room and become host
241241
* @param {object} initialStorage - Initial storage object
242-
* @returns {Promise} - Promise resolves with peer id
242+
* @returns {Promise} Promise resolves with peer id
243243
*/
244244
createRoom(initialStorage = {}) {
245245
if (!this.#peer || this.#peer.destroyed) {
@@ -364,8 +364,8 @@ export default class PlayPeer {
364364
/**
365365
* Update storage with new value
366366
* @public
367-
* @param {string} key Storage key to update
368-
* @param {*} value New value
367+
* @param {string} key - Storage key to update
368+
* @param {*} value - New value
369369
*/
370370
updateStorage(key, value) {
371371
if (this.#isHost) {
@@ -478,15 +478,15 @@ export default class PlayPeer {
478478
}
479479

480480
/**
481-
* @returns {number} - Number of active connections to the host
481+
* @returns {number} Number of active connections to the host
482482
*/
483483
get connectionCount() {
484484
if (this.#isHost) return this.#hostConnections?.size || 0;
485485
return this.#hostConnectionsIdArray?.length || 0;
486486
}
487487

488488
/**
489-
* @returns {object} - Get storage object
489+
* @returns {object} Get storage object
490490
*/
491491
get getStorage() {
492492
return this.#storage || {};

0 commit comments

Comments
 (0)