How to require socketstream in client side

I'm using node.js with socketstream while calling server side function.I'm getting 'ss is not defined error'.Can i require that socketstream.how can i require the socketstream.

      ss.rpc('User.saveUserInfo',name,pwd,function(res){

      alert(res);

         });

The solution to this issue was that the html tag was not included in the html file's head section.