Skip to content

Instantly share code, notes, and snippets.

@ragingwind
Created July 28, 2020 08:02
Show Gist options
  • Save ragingwind/dea3b77debd2d47ec6d065387e457779 to your computer and use it in GitHub Desktop.
Save ragingwind/dea3b77debd2d47ec6d065387e457779 to your computer and use it in GitHub Desktop.
Simple Bridge App for ProtoPie Connect
const io = require('socket.io-client');
function main(address, message) {
const socket = io(address);
socket.on('connect', () => {
socket.emit('ppMessage', { messageId: message });
socket.disconnect();
});
}
main('http://localhost:9981', process.argv[2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment