angular2-websocket
angular2-websocket copied to clipboard
add 4th send return mode: Old Observable mode AND option auto connect code
1.add 4th send return mode: Old Observable mode this mode will return a Observable and next it when send this mode useful when someone use flatMap function in Rxjs.
2.option auto connect code
use mustReconnectCloseStatusCodeListandnotReconnectCloseStatusCodeListto config when to reconnect
3.default close mode is close(false)
so, you can simple write close()to close it
I dont test the code. because my test evironment broken, this lib cannot create any connect, only by a reboot on my computer. (+_+)
now I lost my test evironment.
So, this PR need complete test before merge.
We need someone to test the code.