mirror of
https://github.com/esiur/esiur-js.git
synced 2025-05-06 12:32:58 +00:00
Test
This commit is contained in:
parent
144db9ee8b
commit
c6c04b0212
@ -29,7 +29,7 @@
|
||||
class DistributedConnection extends IStore {
|
||||
|
||||
send(data) {
|
||||
console.log("Send", data.length);
|
||||
//console.log("Send", data.length);
|
||||
this.socket.send(data.buffer);
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ class DistributedConnection extends IStore {
|
||||
|
||||
this.socket.onmessage = function (msg) {
|
||||
|
||||
console.log("Rec", msg.data.byteLength);
|
||||
//console.log("Rec", msg.data.byteLength);
|
||||
|
||||
this.networkBuffer.writeAll(msg.data);
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
function init() {
|
||||
|
||||
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
|
||||
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "demo", "1234");
|
||||
Warehouse.put(con, "remote");
|
||||
|
||||
con.on("ready", function (d) {
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
function init() {
|
||||
|
||||
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
|
||||
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "demo", "1234");
|
||||
Warehouse.put(con, "remote");
|
||||
|
||||
con.on("ready", function (d) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user