fix websocket client reconnection and wss support

- Change creation of connector for ReactPHP changes
- Clean isClosing flag to allow multiple reconnects
- Default port is now based on protocol (80 or 443)