Socket.io-client: Promise support

Created on 26 Apr 2017  ·  2Comments  ·  Source: socketio/socket.io-client

Hi,
Any plan to support async/await feature? currently socket.emit returns socket object but adding Async functions that return Promise would help a lot in writing cleaner code.

Most helpful comment

@aryaei No plan currently. Maybe a wrapper around the current API could be provided. If anyone wants to contribute!

All 2 comments

@aryaei No plan currently. Maybe a wrapper around the current API could be provided. If anyone wants to contribute!

socket.io-as-promised looks interesting. Not widely used as far as I can see.

Was this page helpful?
0 / 5 - 0 ratings