tag:userecho.com,2024-03-29:/feeds/topics/uk//socketbug2014-07-22T20:27:51+00:00tag:socketbug.userecho.com,2014-07-22:/communities/1/topics/9-ioconfigure-error/2014-07-22T20:27:51+00:002014-07-22T20:27:51+00:00io.configure error [питання] Hi. I've gone through all of the installation steps, but when I run "node socketbug_server.js" I get:<br><br> io.configure('production', function () {<br> ^<br>TypeError: Object #<Server> has no method 'configure'<br> at C:\Users\Mike Traficante\Documents\socketsrv\socketbug_server.js:121:6<br> at Object.<anonymous> (C:\Users\Mike Traficante\Documents\socketsrv\socketbug_server.js:684:3)<br> at Module._compile (module.js:456:26)<br> at Object.Module._extensions..js (module.js:474:10)<br> at Module.load (module.js:356:32)<br> at Function.Module._load (module.js:312:12)<br> at Function.Module.runMain (module.js:497:10)<br> at startup (node.js:119:16)<br> at node.js:906:3<br><br>I'm running Windows 7 64bit. Any idea what I've done wrong?<br><br/><br/>запропонував(ла): miketivmiketivhttps://socketbug.userecho.com/users/20-miketiv/topics/tag:socketbug.userecho.com,2013-04-18:/communities/1/topics/3-handshake-authorization-not-being-done-with-server/2013-04-18T22:52:40+00:002013-04-18T22:52:40+00:00Handshake authorization not being done with Server. [питання] <p>I am trying socketbug to remotely debug my application but i am not able to establish a connection with server. </p><p><br></p><p>I inserted the following code in my index.html</p><p></p><p><script type="text/javascript"></p><p> var _sbs = _sbs || {</p><p> 'version': '0.2.0',</p><p> 'host': 'http://localhost',</p><p> 'port': 8888,</p><p> 'group_id': '4704808A-80A9-6DD3-341F-E18A3F00563A',</p><p> 'group_name': 'Socketbug Demo Group',</p><p> 'application_id': '5E3E8FB6-86CF-6BF8-B4C4-6B2497BC388C',</p><p> 'application_name': 'Socketbug Demo Application',</p><p> 'debug_level': 4,</p><p> 'helpers': [],</p><p> 'libraries': [],</p><p> 'plugins': [],</p><p> 'connect_callback': socketbug_connect_callback,</p><p> 'disconnect_callback': socketbug_disconnect_callback,</p><p> 'message_callback': socketbug_message_callback</p><p> };</p><p> </script></p><p> <script type="text/javascript" src="http://localhost:8080/socketbug/client/application/sb.js" async></script></p><br><p></p><p>my application running locally on port 8888. </p><p>I just get following message when i start my server.</p><p><br></p><p>info - socket.io started<br></p><p><br></p><p>But no handshake happens. Can someone please tell me What am i possibly doing wrong?</p><p><br></p><p><br></p><p>Thanks.</p><br/><br/> Ricardo Richardson відповів(ла):<br/><p>I have the same issue did you get to fix it?<br></p>Manisha Awasthihttps://socketbug.userecho.com/users/18-manisha-awasthi/topics/tag:socketbug.userecho.com,2013-02-22:/communities/1/topics/20-openssl/2013-02-22T11:42:58+00:002013-02-22T11:42:58+00:00openSSL [ідеї] <p>The server will also need to have openSSL installed:</p><p></p><pre><code>sudo apt-get install libssl0.9.8</code></pre><p>Also install the development package:</p><pre><code>sudo apt-get install libssl-dev</code></pre><p></p><br/><br/>запропонував(ла): SwitzerBadenSwitzerBadenhttps://socketbug.userecho.com/users/17-switzerbaden/topics/tag:socketbug.userecho.com,2013-02-22:/communities/1/topics/5-newline-unexpected-nodejs-rpm/2013-02-22T10:55:36+00:002013-02-22T10:55:36+00:00newline unexpected node.js rpm [помилки] I was getting the error:<br><pre>sh: 2: Syntax error: newline unexpected</pre>when I ran the command:<pre>curl http://npmjs.org/install.sh | sh</pre>and fixed it by instead running the command:<pre>curl -k https://npmjs.org/install.sh | sudo sh</pre>Hope this helps someone.<br/><br/>запропонував(ла): SwitzerBadenSwitzerBadenhttps://socketbug.userecho.com/users/17-switzerbaden/topics/tag:socketbug.userecho.com,2013-02-22:/communities/1/topics/2-error-pathspec-originv04-did-not-match-any-files-known-to-git/2013-02-22T10:28:12+00:002013-02-22T10:28:12+00:00error: pathspec 'origin/v0.4' did not match any file(s) known to git [помилки] When installing node.js and trying to switch to v.04 branch via the command: <pre>git checkout origin/v0.4</pre> one may get the following error message: <pre>error: pathspec 'origin/v0.4' did not match any file(s) known to git</pre> if so, try frist running <pre>git fetch</pre> so that the local repository grabs all new info from github. It just takes the information about new branches and no actual code. After that the git checkout should work fine.Bazinga!<br/><br/>запропонував(ла): SwitzerBadenSwitzerBadenhttps://socketbug.userecho.com/users/17-switzerbaden/topics/tag:socketbug.userecho.com,2012-07-19:/communities/1/topics/11-startstop-socketbug/2012-07-19T15:51:52+00:002012-07-19T15:51:52+00:00Start/Stop Socketbug [питання] Hi,<p>I just started using socketbug and I'm trying to figure out how to run the provided bash files socketbug_start.sh and socketbug_stop.sh. I have to say that I'm a complete newbie in this field and don't have a lot experience with using terminal commands. Can somebody also explain to me what's the difference between running socketbug via "<span style="color: rgb(51, 51, 51);">node socketbug_server.js<span id="pastemarkerend82487"></span></span>" instead of the bash files? </p><p>Thanks a lot!</p><br/><br/> Manifest Interactive відповів(ла):<br/>All the bash scripts do is execute the node instance. You can open the files in a text editor to view the commands they are running. To execute the SH files, just open up terminal and change to the directory you have the files in, and then run ./socketbug_start.sh in a terminal window.manny_vhttps://socketbug.userecho.com/users/16-manny_v/topics/tag:socketbug.userecho.com,2012-07-08:/communities/1/topics/24-socket-bug-running-on-mac-web-server-is-windows-iis/2012-07-08T18:13:07+00:002012-07-08T18:13:07+00:00socket bug running on mac, web server is windows IIS [питання] Hi, <div>I installed socketbug on my Mac, I have a windows PC running as a web server for my app, the client is an iPad. </div><div>I got all the pieces together, I connect the code to the remote host (http://myMac/ instead of localhost), I get the handshake on the socketbug server running in the Mac, I also can send remote js commands to the iPad (alerts and so on), but my main interest, to get the console logs and warnings from the pad to the socket bug console do not work. </div><div>I can send a console.warn() from the socket bug console to be shown in the pad, but the ones in my code / in my iPad are just not shown in the console. I have not used query in my own code, can this be a reason? Any other ideas why?</div><div>Thanks!</div><br/><br/> Jorge Zingg Jorge відповів(ла):<br/>Great, thanks, works now! Now I have the problem, when it opens in Safari it works, but as Home Screen app it does not... I'll keep tryingJorge Zingg Jorgehttps://socketbug.userecho.com/users/15-jorge-zingg-jorge/topics/tag:socketbug.userecho.com,2012-06-07:/communities/1/topics/23-socketbug-within-appcelerator-titanium-web-view/2012-06-07T13:19:23+00:002012-06-07T13:19:23+00:00Socketbug within Appcelerator Titanium web view [питання] Just found the answer to my problem - debugging embedded web pages within mobile application frameworks like Appcelerator Titanium - no more build and debug then hope for the best when i embed the pages.<div><br></div><div>Big problem - appcelerator only seems to work if i directly 'include' the javascript files into the web page - it looks like sb.js does the loading order for me - is there any chance of getting this documented so i can manually force this and therefore get the files included within my mobile app package. (i.e. if i don't specify them, then the preprocessor for the mobile framework won't include the other .js files in the package and therefore they aren't available to sb.js)</div><div><br></div><div><br></div><br/><br/>запропонував(ла): Andrew AlexanderAndrew Alexanderhttps://socketbug.userecho.com/users/14-andrew-alexander/topics/tag:socketbug.userecho.com,2012-02-22:/communities/1/topics/22-socketbug-on-windows-server-2008r2/2012-02-22T16:04:19+00:002012-02-22T16:04:19+00:00Socketbug on Windows Server 2008r2? [питання] I've been trying to install Socketbug on my Windows Server, and I think I'm close, but it doesn't seem to work.<div><ol><li>I installed node.js 0.6.11 from nodejs.org.</li><li>I then followed the instructions to do an npm install of socket.io... The instructions weren't clear if socket.io was to be installed in the nodejs location or not. But my first go around, I installed in the C:\Program files(x86)\nodejs folder.</li><li>I uncompressed the socketbug folder to c:\inetpub\wwwroot\socketbug.</li><li>When I tried running node socketbug-server.js it failed complaining socket.io was not found.</li><li>I then ran the same npm command to install socket.io into the socketbug folder. </li><li>Re-ran the node command and socketbug looks like it's running.</li></ol><div>The problem now, though is if I hit <a href="http://localhost/socketbug/client/example,">http://localhost/socketbug/client/example,</a> I first get a "Stack overflow at line:0" in the browers, and the lower right of the screen is stuck at "Connecting to Socketbug"...</div></div><div><br></div><div>If I look at my command window, I see the following:</div><div><br></div><div><div>C:\inetpub\wwwroot\socketbug\server>node socketbug_server.js</div><div> info - socket.io started</div><div> info - handshake authorized 4729970731545680162</div><div> info - transport end</div></div><div><br></div><div>So, I'm not sure what to do or look at now. Also, if I hit <a href="http://localhost:8080,">http://localhost:8080,</a> the browser shows me "welcome to socket.io", so I guess that's running ok?</div><div><br></div><div>Any suggestions?</div><div>Thanks</div><br/><br/>запропонував(ла): Dower ChinDower Chinhttps://socketbug.userecho.com/users/13-dower-chin/topics/tag:socketbug.userecho.com,2011-12-08:/communities/1/topics/8-comparison-with-weinre/2011-12-08T16:26:05+00:002011-12-08T16:26:05+00:00Comparison with weinre? [питання] Sorry for the noob question, but can you briefly compare Socketbug to weinre? <div><br></div><div>Seems that Socketbug is console based and is focused on JS debugging. Can Socketbug be used to connect Web Inspector (e.g. Chrome) to a client browser? </div><div><br></div><div>If not, is there any way that Socketbug can provide full DOM/CSS inspection?</div><div><br></div><div>I am looking for a remote web view debugger/inspector that can not only connect to iOS/Android devices, and the iOS/Android desktop simulators, but also to the Qt web view control running within a Qt desktop app.</div><div><br></div><div><br></div><br/><br/>запропонував(ла): Tim ClossTim Closshttps://socketbug.userecho.com/users/11-tim-closs/topics/tag:socketbug.userecho.com,2011-11-20:/communities/1/topics/17-add-support-for-running-under-named-pipes-ie-using-iisnode-on-windows/2011-11-20T04:15:21+00:002011-11-20T04:15:21+00:00Add support for running under named pipes (i.e using iisnode on windows) [ідеї] <span>I can't get socketbug to run when using iisnode on windows & iis 7, since one has to specify a port number in the configuration for socketbug, but using iisnode the port will actually be a named pipe (</span><span style="color: rgb(51, 51, 51);">"\.\pipe\b2b4cb8c-7564-4408-80f5-3ba5f5809541"), this is accessed through the use of "</span><span style="color: rgb(51, 51, 51);">process.env.PORT".</span><br/><br/>запропонував(ла): Ted PTed Phttps://socketbug.userecho.com/users/10-ted-p/topics/tag:socketbug.userecho.com,2011-09-13:/communities/1/topics/10-output-of-socketbugdebug/2011-09-13T01:49:53+00:002011-09-13T01:49:53+00:00Output of socketbug.debug() [питання] It seems that socketbug.debug("derp",1) should show up in in console, but it doesn't. I can see in the real browser console that it says it's being sent, but it doesn't show up in the SocketBug console. Am I doing something wrong?<br/><br/>запропонував(ла): Finn HerzfeldFinn Herzfeldhttps://socketbug.userecho.com/users/9-finn-herzfeld/topics/tag:socketbug.userecho.com,2011-09-04:/communities/1/topics/25-error-authenticating-remote-debug-message/2011-09-04T22:16:09+00:002011-09-04T22:16:09+00:00Error Authenticating Remote Debug Message [ідеї] <p></p><p>hi, i have a problem when use the socketbug</p><p><br></p><p>i run server successfully and open console and application to connect the server rightly.</p><p>but when i click DEBUG TEXT and other button in client/example/index.html</p><p>there occur error on server terminal which run socketbug_server.js</p><p>the ERROR:</p><p><br></p><p>zhangyang09@linux:/usr/local/socketbug$ node socketbug_server.js </p><p> info - socket.io started</p><p> info - handshake authorized 7314333162030731849</p><p> info - handshake authorized 905616608131679385</p><p>Error Authenticating Remote Debug Message <-- Click DEBUG TEXT button</p><p>{ stack: [Getter/Setter],</p><p> arguments: [ 'clients', undefined ],</p><p> type: 'non_object_property_load',</p><p> message: [Getter/Setter] }</p><p>Error Authenticating Remote Debug Message</p><p>{ stack: [Getter/Setter],</p><p> arguments: [ 'clients', undefined ],</p><p> type: 'non_object_property_load',</p><p> message: [Getter/Setter] }</p><p><br></p><p><br></p><p>I expect to look socketbug's excellent. can you help me, thanks.</p><p></p><br/><br/>запропонував(ла): Yang ZhangYang Zhanghttps://socketbug.userecho.com/users/8-yang-zhang/topics/tag:socketbug.userecho.com,2011-08-25:/communities/1/topics/21-write-places-of-encryption-salt-into-documentation-wiki/2011-08-25T13:21:54+00:002011-08-25T13:21:54+00:00Write places of encryption salt into documentation (wiki) [ідеї] <p> I would suggest to write into the documentation (in this case the wiki) where the enryption salt strings are located.</p><p> <br></p><p>Because I took the string "Ch4ng3^M3" literally and changed it to a secure string of mine. But i changed only in server and validation script and wondered then why it does not work. Messed up by reverse engineering (writing console.logs into the server.js and so on...) until I found the salt again in client/js/lib/socketbug_console.js...</p><p><br></p><p>Just a suggestion if there exists more encryption_salt_changer except me ;-)</p><br/><br/>запропонував(ла): Sebastian BejgaSebastian Bejgahttps://socketbug.userecho.com/users/7-sebastian-bejga/topics/tag:socketbug.userecho.com,2011-07-28:/communities/1/topics/6-publish-it-as-a-npm-package-to-make-installation-easier/2011-07-28T13:45:13+00:002011-07-28T13:45:13+00:00Publish it as a NPM package to make installation easier [ідеї] Steps 2,3 and 4 here https://github.com/manifestinteractive/socketbug/wiki/Install-Server<div><br></div><div>Could be turned into one command: npm install socketbug</div><div><br></div><div>If you publish it as a NPM package... Thoughts?</div><br/><br/> Sam Elliott відповів(ла):<br/><a href="https://github.com/isaacs/npm/blob/master/doc/developers.md#readme">https://github.com/isaacs/npm/blob/master/doc/developers.md#readme</a><div><br></div><div>that seems to be a good guide. I think it just involves a package.json and a little other data.</div>Benjamin Luptonhttps://socketbug.userecho.com/users/5-benjamin-lupton/topics/tag:socketbug.userecho.com,2011-07-05:/communities/1/topics/7-cdn-socketbug-application-console-files/2011-07-05T13:59:46+00:002011-07-05T13:59:46+00:00CDN Socketbug Application & Console Files [ідеї] I have a CDN setup for the Socketbug Application and Console code. This would mean that users could just copy the javascript config code into their HTML file and point their script src to our CDN. Would make for less work having to setup everything... let me know what you guys think.<br/><br/> Manifest Interactive відповів(ла):<br/>Just swap out the <a href="http://io.socketbug.com">http://io.socketbug.com</a> with <a href="http://50.19.236.112">http://50.19.236.112</a> in your HTML code and it should work. Looks like the DNS has not resolved yet for you to access it by domain name. I just lowered the TTL to speed up this process, so perhaps in 24-48 hours it should be working world wide. Until then, just use http://50.19.236.112 in your code :)Manifest Interactivehttps://socketbug.userecho.com/users/1-manifest-interactive/topics/tag:socketbug.userecho.com,2011-07-04:/communities/1/topics/13-screencasting-tool/2011-07-04T15:58:35+00:002011-07-04T15:58:35+00:00Screencasting tool [питання] Hi,<br><br>Nice screencast, please tell me what software did you used.<br><br>Regards,<br>Chris<br/><br/> Manifest Interactive відповів(ла):<br/>I used ScreenFlow. It's pretty sweet.klojniewskihttps://socketbug.userecho.com/users/4-klojniewski/topics/tag:socketbug.userecho.com,2011-07-04:/communities/1/topics/1-console-javascript-errors-syntaxhighlighter-undefined/2011-07-04T03:59:04+00:002011-07-04T03:59:04+00:00Console Javascript Errors SyntaxHighlighter undefined [ідеї] <div>There is a big in v0.2.0 where if you are hosting your console code remotely, it will not set the base path for the plugins correctly, so you will get this error. This has been fixed in the master branch.</div><div><br></div><a href="https://github.com/manifestinteractive/socketbug/tree/master">https://github.com/manifestinteractive/socketbug/tree/master</a><br/><br/>запропонував(ла): Manifest InteractiveManifest Interactivehttps://socketbug.userecho.com/users/1-manifest-interactive/topics/tag:socketbug.userecho.com,2011-07-04:/communities/1/topics/16-style-on-body-broken-in-opera/2011-07-04T03:56:22+00:002011-07-04T03:56:22+00:00style on <body> broken in Opera [помилки] <p>This is due to a bug in jQuery 1.6.1... 1.6.2 was just released last week with a fix. Would you mind upgrading? It's kind of hard to read the page... :(</p><p><br></p><p>Thanks!</p><br/><br/> Manifest Interactive відповів(ла):<br/>This issue has been resolved in the master branch:<div><br></div><div><a href="https://github.com/manifestinteractive/socketbug/tree/master">https://github.com/manifestinteractive/socketbug/tree/master</a><br></div>Mike Taylorhttps://socketbug.userecho.com/users/3-mike-taylor/topics/tag:socketbug.userecho.com,2011-07-01:/communities/1/topics/19-return-console-command-output-back-to-the-console/2011-07-01T14:53:03+00:002011-07-01T14:53:03+00:00Return console command output back to the console. [ідеї] When executing arbitrary Javascript that returns a result, the result should be returned to the console.<div><br></div><div>For example, executing $('#mydiv').text(); in the console, the text of that div should be returned to the console.</div><div><br></div><div>If this is not directly possible, a new method should be created so that the returned value of such a command can be returned when wrapped in this method.</div><div><br></div><div>something like get($('#mydiv').text());</div><br/><br/>запропонував(ла): John KramlichJohn Kramlichhttps://socketbug.userecho.com/users/2-john-kramlich/topics/tag:socketbug.userecho.com,2011-06-26:/communities/1/topics/4-better-way-to-clear-command-prompt/2011-06-26T04:26:33+00:002011-06-26T04:26:33+00:00Better Way to Clear Command Prompt ? [питання] This was set to where if you Double Click the Command Prompt input it would clear any text in it. John pointed out that double click is pretty useful for selecting bits of code in the command line and the input should not be cleared on double click.<div><br></div><div>I have added some Tripple Click logic that makes it so you have to click three times really quickly to clear the command prompt. Seems to work pretty well.</div><div><br></div><div>You can still use tripple click to select all text... you just have to do it at a normal click speed.</div><div><br></div><div>To clear the command prompt you need to click quickly. Its almost hard to do... but not really...</div><div><br></div><div>Anyway, need some better ways to clear this if anyone has a better idea ;)</div><br/><br/>запропонував(ла): Manifest InteractiveManifest Interactivehttps://socketbug.userecho.com/users/1-manifest-interactive/topics/tag:socketbug.userecho.com,2011-06-26:/communities/1/topics/12-messages-to-specific-client-all-in-application-or-all-in-group/2011-06-26T01:09:37+00:002011-06-26T01:09:37+00:00Messages to Specific Client, All in Application, or All in Group [ідеї] <div>Allow Messages to be sent to Specific Client, All Client in Application, or All Clients in Group.<br></div><div><br></div><div>Here is some info on how to better target messages.</div><div><br></div><div><a href="https://github.com/LearnBoost/Socket.IO-node/wiki/Migrating-0.6-to-0.7">https://github.com/LearnBoost/Socket.IO-node/wiki/Migrating-0.6-to-0.7</a><br></div><br/><br/>запропонував(ла): Manifest InteractiveManifest Interactivehttps://socketbug.userecho.com/users/1-manifest-interactive/topics/tag:socketbug.userecho.com,2011-06-25:/communities/1/topics/14-add-log-level-to-console-output-history/2011-06-25T21:28:11+00:002011-06-25T21:28:11+00:00Add log level to console output history [ідеї] Add a class name to each item in the console output history denoting the log level of that item. This would allow filtering of the history by log level similar to Firebug; All, error, debug, etc.<br/><br/> Manifest Interactive відповів(ла):<br/>I will go ahead and add a class to the level of output, but we will need to think of a way to filter the output window later. For now though, here are the class names that will be added...<div><br></div><div><b>Application Debug Message Class Names:</b></div><div><div><ul><li>app_debug_log<br></li><li>app_debug_debug<br></li><li>app_debug_info<br></li><li>app_debug_warn<br></li><li>app_debug_error<br></li></ul></div><div><b><br></b></div><div><div><b>Console Debug Message Class Names:</b></div><div><div><ul><li>con_debug_log<br></li><li>con_debug_debug<br></li><li>con_debug_info<br></li><li>con_debug_warn<br></li><li>con_debug_error<br></li></ul></div></div></div><div><br></div></div>John Kramlichhttps://socketbug.userecho.com/users/2-john-kramlich/topics/tag:socketbug.userecho.com,2011-06-25:/communities/1/topics/18-add-ability-to-change-debug-log-level-from-console/2011-06-25T21:23:35+00:002011-06-25T21:23:35+00:00Add ability to Change Debug Log Level from Console [ідеї] It would be handy to have a way to change the Debug Log Level from the console rather than having to update the javascript and have to refresh the page. This could go in the settings bar at the top. Have a drop down list with maybe the options of:<br><br>Debug Level Select List: <div><div> * 5 = log, debug, info, warn, & error</div><div> * 4 = debug, info, warn, & error</div><div> * 3 = info, warn, & error</div><div> * 2 = warn, & error</div><div> * 1 = error</div></div><br/><br/>запропонував(ла): Manifest InteractiveManifest Interactivehttps://socketbug.userecho.com/users/1-manifest-interactive/topics/tag:socketbug.userecho.com,2011-06-24:/communities/1/topics/15-create-a-device-manager-to-keep-track-of-multiple-devices-in-the-console/2011-06-24T22:58:59+00:002011-06-24T22:58:59+00:00Create a Device Manager to keep track of multiple devices in the console [ідеї] Create a Device Manager inside of the console that allows you to give human readable names to currently connected devices. This can be shown as a table consisting of four columns; name, receives commands, broadcasts messages, and log level. For each device you can decide whether that device will send messages to the console and if so, what log level to do so. You can also choose if that device receives commands from the console.<div><br></div><div>Two commands will need to be created to identify and name each device. </div><div><br></div><div>The Identify command will send a javascript alert to each connected device. The alert message will contain the device id. This can be then cross referenced with the table in the console. Clicking on a row in the custom can bring up an inline editor allowing you to provide a human readable name to the device id.</div><div><br></div><div>The name prompt command will send a javascript prompt command requesting the name of the device. The user can then type the name directly on the device itself.</div><div><br></div><div>Each message received by the console should have a class applied to it that matches the device id. This could be used to filter the output log by device.</div><br/><br/>запропонував(ла): John KramlichJohn Kramlichhttps://socketbug.userecho.com/users/2-john-kramlich/topics/