Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Distopico Vegan 9e639edc8d style: reformat indent 6 years ago
..
LICENSE style: reformat indent 6 years ago
README.md style: reformat indent 6 years ago
index.js style: reformat indent 6 years ago
package.json style: reformat indent 6 years ago

README.md

defer-to-connect

The safe way to handle the connect socket event

Once you receive the socket, it may be already connected.
To avoid checking that, use defer-to-connect. It'll do that for you.

Usage

const deferToConnect = require('defer-to-connect');
deferToConnect(socket, () => {
console.log('Connected!');
});

API

deferToConnect(socket, method, ...args)

Calls socket[method](...args) when connected.

deferToConnect(socket, fn)

Calls fn() when connected.

License

MIT