Add support for login & logout while keeping the same shared worker

This commit is contained in:
yflory
2018-06-08 17:35:44 +02:00
parent 02b282a1a5
commit 47dee664da
6 changed files with 1472 additions and 1433 deletions

View File

@@ -15,9 +15,11 @@ require([
'/common/common-util.js',
'/common/outer/worker-channel.js',
'/common/outer/store-rpc.js'
], function (Util, Channel, Rpc) {
], function (Util, Channel, SRpc) {
var msgEv = Util.mkEvent();
var Rpc = SRpc();
Channel.create(msgEv, postMessage, function (chan) {
var clientId = '1';
Object.keys(Rpc.queries).forEach(function (q) {