Last active
January 20, 2019 15:34
-
-
Save jondubois/66d401e9b49bf2df954aa4b2cc2b85f3 to your computer and use it in GitHub Desktop.
ag-listen-for-inbound-connections
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
// --- in server.js --- | |
// Asyngular/WebSocket connection handling loop. | |
(async () => { | |
for await (let {socket} of agServer.listener('connection')) { | |
// Handle socket connection. | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment