tuxmartin

JavaScript socket

Aug 5th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chrome.experimental.socket.create('tcp', '127.0.0.1', 8080, function(socketInfo) {
  2.   chrome.experimental.socket.connect(socketInfo.socketId, function (result) {
  3.         chrome.experimental.socket.write(socketInfo.socketId, "Hello, world!");        
  4.     });
  5. });
Advertisement
Add Comment
Please, Sign In to add comment