playsocketjs 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/playsocket-client.js +382 -393
- package/dist/{playsocket-server.js → playsocket-server.cjs} +969 -1097
- package/dist/playsocket-server.mjs +2648 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -141,9 +141,9 @@ Here are usage examples for a standalone server and an Express.js application.
|
|
|
141
141
|
### Standalone server
|
|
142
142
|
|
|
143
143
|
```javascript
|
|
144
|
-
|
|
144
|
+
import PlaySocketServer from 'playsocketjs/server'; // Both ES Module & CommonJS Module syntax is supported
|
|
145
145
|
|
|
146
|
-
const server = new PlaySocketServer(); // Create and start the server (default path is /
|
|
146
|
+
const server = new PlaySocketServer(); // Create and start the server (default path is /)
|
|
147
147
|
|
|
148
148
|
// Gracefully disconnect all clients and close the server (optional)
|
|
149
149
|
function shutdown() {
|