Skip to content

Instantly share code, notes, and snippets.

@ragingwind
Created July 28, 2020 08:02
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