Lines Matching refs:msg
142 const genMsgId = config.generateMessageId || function(msg){
143 return msg.type+'#'+(idTypeMap[msg.type] = (idTypeMap[msg.type]||0) + 1);
186 let msg;
188 msg = arguments[0];
190 msg = { variable
197 if(!msg.dbId) msg.dbId = dbId;
198 msg.messageId = genMsgId(msg);
199 msg.departureTime = performance.now();
201 proxy.message = msg;
203 if('exec'===msg.type && msg.args){
204 if('function'===typeof msg.args.callback){
205 rowCallbackId = msg.messageId+':row';
206 proxy.onrow = msg.args.callback;
207 msg.args.callback = rowCallbackId;
209 }else if('string' === typeof msg.args.callback){
231 handlerMap[msg.messageId] = proxy;
232 debug("Posting",msg.type,"message to Worker dbId="+(dbId||'default')+':',msg);
233 config.worker.postMessage(msg);