<commit_before>/**
 * @author <NAME> <<EMAIL>>
 * @copyright 2015 Sazze, Inc.
 */

var client = require('engine.io-client');
var https = require('https');
var os = require('os');
var protocol = require('sz-rc-protocol');
var fs = require('fs');

var Message = protocol.Message;
var Response = protocol.Response;

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

var options = {
  rejectUnauthorized: false,
  rememberUpgrade: true,
  key: fs.readFileSync(__dirname + '/../../../../../../vpn/c1.cs1.sazze.com/cthayer.key'),
  cert: fs.readFileSync(__dirname + '/../../../../../../vpn/c1.cs1.sazze.com/cthayer.crt'),
  transports: ['websocket']
};


console.log(options);

var socket = client('wss://127.0.0.1:8080', options);

socket.on('open', function () {
  console.log('socket open');

  var message = new Message();

  message.command = 'echo "Hello World!"';
  //message.args = ['"Hello World!"'];

  socket.send(JSON.stringify(message));
});

socket.on('message', function (data) {
  console.log(data);
});

socket.on('error', function (err) {
  console.log(err);
});

socket.on('close', function () {<commit_msg>reflect default port in client test script<commit_after>/**
 * @author <NAME> <<EMAIL>>
 * @copyright 2015 Sazze, Inc.
 */

var client = require('engine.io-client');
var https = require('https');
var os = require('os');
var protocol = require('sz-rc-protocol');
var fs = require('fs');

var Message = protocol.Message;
var Response = protocol.Response;

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

var options = {
  rejectUnauthorized: false,
  rememberUpgrade: true,
  key: fs.readFileSync(__dirname + '/../../../../../../vpn/c1.cs1.sazze.com/cthayer.key'),
  cert: fs.readFileSync(__dirname + '/../../../../../../vpn/c1.cs1.sazze.com/cthayer.crt'),
  transports: ['websocket']
};


console.log(options);

var socket = client('wss://127.0.0.1:4515', options);

socket.on('open', function () {
  console.log('socket open');

  var message = new Message();

  message.command = 'echo "Hello World!"';
  //message.args = ['"Hello World!"'];

  socket.send(JSON.stringify(message));
});

socket.on('message', function (data) {
  console.log(data);
});

socket.on('error', function (err) {
  console.log(err);
});

socket.on('close', function () {
{'fraction_non_alphanumeric': 0.21829429960229785, 'fraction_numerical': 0.016791869200176758, 'mean_word_length': 3.9110629067245117, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6164217', 'n_tokens_mistral': 803, 'n_tokens_neox': 775, 'n_words': 158}