Monday 22 October 2012

Testing sockets

Since latest version of the application you can test socket messaging as well. It is simple implementation of the web socket API.

For server implementation you can use for example the ws module for node.js.

Below is sample server side code:

var WebSocketServer = require('ws').Server
  , wss = new WebSocketServer({port: 8080});
  
console.log('Starting server');
wss.on('connection', function(ws) {
 
 console.log('user is connected');
 ws.send('user connected. Welcome.');
 
 ws.on('message', function(message) {
  console.log('received: %s', message);
  ws.send('Response to ' + message);
 });

 ws.on('disconnect', function() {
  console.log('user disconnected');
 });
});

Happy codding!

Update not for all (for now)

Some of you asking me why the application is not available. It can't be installed from the Web Store or upgraded in browser.
As I mentioned in description of updates, new version requires Chrome version 23 (at least). All because it use Chrome API that is not available in older versions. Unfortunately current stable version is 21 and beta channel is 23. So only users with beta or dev channel may install or update application. 

It should change soon, when Chrome team release an update to stable version. Sorry for this inconvenience.

Tuesday 16 October 2012

Update is available

I've just updated application on Chrome Web Store. It is only available to users who use Chrome in version 23 (sorry).

More about new features you can read in my previous post It's almost here! New version of Advanced Rest Client .

Since this post I've added new feature: web socket debug. Just connect to socket and send any data.
Now I will take couple of days off ;)

Cheers.