Skip to content

Instantly share code, notes, and snippets.

@ragingwind
Created Jul 28, 2020
Embed
What would you like to do?
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