webfast 0.1.56 → 0.1.58

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,6 +124,7 @@ web.fast.connectWebSocket = function(socketURL,maxRetries = 40, retries = 0) {
124
124
  console.log('WebSocket connected');
125
125
  // Start other things (e.g., send initial data)
126
126
  web.fast.que.state = true;
127
+
127
128
  };
128
129
 
129
130
  ws.onmessage = (event) => {
@@ -134,6 +135,7 @@ web.fast.connectWebSocket = function(socketURL,maxRetries = 40, retries = 0) {
134
135
  if (json.type == `user`) {
135
136
  // We have user data
136
137
  console.log(`Set User Data`);
138
+ web.fast.user = json;
137
139
  // Now go Through to set all data
138
140
  // Get all webfast client
139
141
  jQuery(`[webfast-client]`).each(function(){
@@ -347,6 +347,10 @@ module.exports = async function (program) {
347
347
  }
348
348
  console.log(`Preparing for sending`);
349
349
  sendData.images = allImages;
350
+
351
+ // TODO ADD OTHER DATA
352
+ //program.express.process.socket.api.
353
+ // TODO location
350
354
  ws.send(JSON.stringify({ type: 'user', clientId: clientId, data : sendData }));
351
355
 
352
356
  }});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webfast",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "description": "WebFast! Bot Application, including TON mini-apps for makign it easy and fast to build ini-apps",
5
5
  "main": "index.js",
6
6
  "repository": {