Created
March 18, 2017 03:58
-
-
Save cazetto/c07879d5d781e6397b3eadcf2ff5d4a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function asyncConnectToSocket() { | |
let { Receiver, Emmiter } = await SktServer.init({ httpServer }); | |
Receiver | |
.subscribe('message', data => { | |
console.log(data); | |
}); | |
Emmiter | |
.emmit('my message'); | |
}; | |
asyncConnectToSocket(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment