Created
July 28, 2020 08:02
Simple Bridge App for ProtoPie Connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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