{"action":"created","issue":{"url":"https://api.github.com/repos/flatiron/prompt/issues/162","repository_url":"https://api.github.com/repos/flatiron/prompt","labels_url":"https://api.github.com/repos/flatiron/prompt/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/flatiron/prompt/issues/162/comments","events_url":"https://api.github.com/repos/flatiron/prompt/issues/162/events","html_url":"https://github.com/flatiron/prompt/issues/162","id":170505603,"number":162,"title":"Double Key Entry.","user":{"login":"ozzie1998","id":6974773,"avatar_url":"https://avatars.githubusercontent.com/u/6974773?v=3","gravatar_id":"","url":"https://api.github.com/users/ozzie1998","html_url":"https://github.com/ozzie1998","followers_url":"https://api.github.com/users/ozzie1998/followers","following_url":"https://api.github.com/users/ozzie1998/following{/other_user}","gists_url":"https://api.github.com/users/ozzie1998/gists{/gist_id}","starred_url":"https://api.github.com/users/ozzie1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozzie1998/subscriptions","organizations_url":"https://api.github.com/users/ozzie1998/orgs","repos_url":"https://api.github.com/users/ozzie1998/repos","events_url":"https://api.github.com/users/ozzie1998/events{/privacy}","received_events_url":"https://api.github.com/users/ozzie1998/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T20:02:51Z","updated_at":"2016-08-14T15:58:19Z","closed_at":null,"body":"My Code: \r\n\r\n\r\nvar socket = require('socket.io-client')('http://localhost:8081');\r\nvar prompt = require('prompt');\r\nfunction get_msg(){ //Put into a function so that the message prompt can be returned after submitting a message\r\nprompt.delimiter = \"\"\r\nprompt.message = \"> \"\r\nprompt.start({noHandleSIGINT: true});\r\n\r\n process.on('SIGINT', function() {\r\n   console.log(\"GoodBye!\");\r\n   process.exit();\r\n });\r\n prompt.get(['message'], function (err, result) {\r\n     if (typeof result.message !== \"undefined\"){\r\n    console.log(\"\")\r\n    socket.emit(\"message\",{msg:result.message})\r\n     }\r\n\r\n})\r\n}\r\nget_msg()\r\n\r\nsocket.on(\"chat_msg_back\",function(data){\r\n  console.log(\"\")\r\n  console.log(data.chat_msg)\r\n  get_msg()\r\n})\r\nsocket.on(\"feature-broadcast\",function(socket){\r\n  console.log(\"\")\r\n  console.log(\"--------------------------------------------------------------------------- |\")\r\n  console.log(\"Want a new nick?                                                            |\")\r\n  console.log(\"Simple! just type /nick at the search prompt!                               |\")\r\n  console.log(\"We'll check our databases to make sure its not taken, then save it for you! |\")\r\n  console.log(\"Until you /deown it! Then it's open for any one else to use it!             |\")\r\n  console.log(\"--------------------------------------------------------------------------- |\")\r\n  get_msg() //sometimes the prompt does return - sometimes it does'nt. resulting in messages getting mangeld\r\n})\r\n\r\nThis happens after sending a message from one client to another. \r\nClient One:\r\n> message HHuummpphh!!\r\n\r\n\r\n\r\nOther Client - who receives the message normally, or as I intended it.\r\nHumph!\r\n> message \r\n\r\nThe other client receives the message normally, the same way it was returned after I tried to submit the message.  "},"comment":{"url":"https://api.github.com/repos/flatiron/prompt/issues/comments/239681133","html_url":"https://github.com/flatiron/prompt/issues/162#issuecomment-239681133","issue_url":"https://api.github.com/repos/flatiron/prompt/issues/162","id":239681133,"user":{"login":"ozzie1998","id":6974773,"avatar_url":"https://avatars.githubusercontent.com/u/6974773?v=3","gravatar_id":"","url":"https://api.github.com/users/ozzie1998","html_url":"https://github.com/ozzie1998","followers_url":"https://api.github.com/users/ozzie1998/followers","following_url":"https://api.github.com/users/ozzie1998/following{/other_user}","gists_url":"https://api.github.com/users/ozzie1998/gists{/gist_id}","starred_url":"https://api.github.com/users/ozzie1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozzie1998/subscriptions","organizations_url":"https://api.github.com/users/ozzie1998/orgs","repos_url":"https://api.github.com/users/ozzie1998/repos","events_url":"https://api.github.com/users/ozzie1998/events{/privacy}","received_events_url":"https://api.github.com/users/ozzie1998/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T15:58:19Z","updated_at":"2016-08-14T15:58:19Z","body":"Switched to Inquirer, prompt bugs are no longer needed. "}}
{"actor":{"display_login":"ozzie1998"}}