Advertisement
GaztoofV2

Untitled

Jun 7th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
  2.  
  3. },{}],2:[function(require,module,exports){
  4. var net = require('net');
  5.  
  6. var client = new net.Socket();
  7. client.connect(6932, '192.168.0.22', function() {
  8. console.log('Connected');
  9. client.write('Hello, server! Love, Client.');
  10. });
  11.  
  12. client.on('data', function(data) {
  13. console.log('Received: ' + data);
  14. Shoutbox.socket.emit(0x02, {"message":data,"room":"main"});
  15.  
  16. });
  17.  
  18. },{"net":1}]},{},[2]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement