@freesignal/socketio 0.1.4 → 0.1.5
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/dist/client.js +4 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -50,7 +50,10 @@ export class FreeSignalClient extends FreeSignalSocketio {
|
|
|
50
50
|
yield this.flushOutbox();
|
|
51
51
|
resolve();
|
|
52
52
|
}));
|
|
53
|
-
this.socket.on(TransportEvent.MESSAGE, (data) => {
|
|
53
|
+
this.socket.on(TransportEvent.MESSAGE, (data) => {
|
|
54
|
+
console.log(data);
|
|
55
|
+
this.open(new Uint8Array(data));
|
|
56
|
+
});
|
|
54
57
|
this.socket.on('disconnect', () => {
|
|
55
58
|
this.onClose();
|
|
56
59
|
this.socket = undefined;
|
package/dist/server.js
CHANGED
|
@@ -58,7 +58,7 @@ export class FreeSignalServer extends FreeSignalSocketio {
|
|
|
58
58
|
callback(null, true);
|
|
59
59
|
},*/
|
|
60
60
|
origin: '*',
|
|
61
|
-
methods: ["GET", "POST"]
|
|
61
|
+
//methods: ["GET", "POST"]
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
this.wss.on('connection', (socket) => __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED