{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/22","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/22/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/22/events","html_url":"https://github.com/QuickBlox/quickblox-javascript-sdk/issues/22","id":96315908,"number":22,"title":"Can't connect to chat from Node backend","user":{"login":"ketanbhatt","id":9729957,"avatar_url":"https://avatars.githubusercontent.com/u/9729957?v=3","gravatar_id":"","url":"https://api.github.com/users/ketanbhatt","html_url":"https://github.com/ketanbhatt","followers_url":"https://api.github.com/users/ketanbhatt/followers","following_url":"https://api.github.com/users/ketanbhatt/following{/other_user}","gists_url":"https://api.github.com/users/ketanbhatt/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanbhatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanbhatt/subscriptions","organizations_url":"https://api.github.com/users/ketanbhatt/orgs","repos_url":"https://api.github.com/users/ketanbhatt/repos","events_url":"https://api.github.com/users/ketanbhatt/events{/privacy}","received_events_url":"https://api.github.com/users/ketanbhatt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2015-07-21T13:35:38Z","updated_at":"2016-12-12T09:57:58Z","closed_at":"2015-07-22T09:00:54Z","body":"I am not able to connect to chat from my node-express backend. \n\nCreating sessions, users etc is okay, but QB.chat.connect says \"Not implemented outside of web yet\".\n\nIs there any workaround for that?\n"},"comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/comments/266386999","html_url":"https://github.com/QuickBlox/quickblox-javascript-sdk/issues/22#issuecomment-266386999","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/22","id":266386999,"user":{"login":"mitaltank","id":24246062,"avatar_url":"https://avatars.githubusercontent.com/u/24246062?v=3","gravatar_id":"","url":"https://api.github.com/users/mitaltank","html_url":"https://github.com/mitaltank","followers_url":"https://api.github.com/users/mitaltank/followers","following_url":"https://api.github.com/users/mitaltank/following{/other_user}","gists_url":"https://api.github.com/users/mitaltank/gists{/gist_id}","starred_url":"https://api.github.com/users/mitaltank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitaltank/subscriptions","organizations_url":"https://api.github.com/users/mitaltank/orgs","repos_url":"https://api.github.com/users/mitaltank/repos","events_url":"https://api.github.com/users/mitaltank/events{/privacy}","received_events_url":"https://api.github.com/users/mitaltank/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T09:57:58Z","updated_at":"2016-12-12T09:57:58Z","body":"function sendMessage(text, attachmentFileId) {\r\n    stickerpipe.onUserMessageSent(stickerpipe.isSticker(text));\r\n\r\n    var msg = {\r\n        type: currentDialog.type === 3 ? 'chat' : 'groupchat',\r\n        body: text,\r\n        extension: {\r\n            save_to_history: 1,\r\n        },\r\n        markable: 1\r\n    };\r\n  \r\n    if(attachmentFileId !== null){\r\n        msg['extension']['attachments'] = [{id: attachmentFileId, type: 'photo'}];\r\n    }\r\n\r\n    if (currentDialog.type === 3) {\r\n        opponentId = QB.chat.helpers.getRecipientId(currentDialog.occupants_ids, currentUser.id);\r\n        \r\n        QB.chat.send(opponentId, msg);\r\n\r\n        $('.list-group-item.active .list-group-item-text')\r\n            .text(stickerpipe.isSticker(msg.body) ? 'Sticker' : msg.body);\r\n\r\n        if(attachmentFileId === null){\r\n            showMessage(currentUser.id, msg);\r\n        } else {\r\n            showMessage(currentUser.id, msg, attachmentFileId);\r\n        }\r\n    } else {\r\n        QB.chat.send(currentDialog.xmpp_room_jid, msg);\r\n    }\r\n\r\n    // claer timer and send 'stop typing' status\r\n    clearTimeout(isTypingTimerId);\r\n    isTypingTimeoutCallback();\r\n\r\n    dialogsMessages.push(msg);\r\n}\r\n"}}
{"actor":{"display_login":"mitaltank"}}