engapplabs / flutter_websocket_plugin

Plugin with native integration for WebSocket.
MIT License
33 stars 31 forks source link

Plz provide `onOpen` and `onError` callback #16

Open cangSDARM opened 3 years ago

cangSDARM commented 3 years ago

WebSocket should be a full-duplex technology. The current API only provides onMessage and onClose, which still lacks some events, such as onOpen and onError.

cangSDARM commented 3 years ago

And for the close event, should provide a closeCode and closeReason for the client closing action.