socket.io-poco
socket.io-poco copied to clipboard
[example]: check the return params to determine if the connection was…
… successful
when node.js server is not listening the port, connect will failed and return a null pointer,Then segment fault will occur if you continue to run it.So we should exit to avoid this error.
Signed-off-by: sliver.chen [email protected]