engapplabs / flutter_websocket_plugin

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

small issue #5

Closed byteslaves closed 4 years ago

byteslaves commented 4 years ago

Hello, I'm glad to use the plugin you developed,This solved my big problem. Thank you very much for your selfless dedication. In use, I found a small problem. When using the client to send a heartbeat and the server to return a heartbeat, it always outputs a Received message on the command line: **, I think this is unnecessary data, which will affect For other code debugging, you can consider whether to use print in the code I write.

   void _messageListener (dynamic message) {      print ('Received message: $ message'); // this line      if (_messageCallback! = null) {        _messageCallback (message);      }    }

luanhssa commented 4 years ago

Thanks for your comment! I'm glad this plugin worked for you!

We've fixed this problem on version 0.2.1 (updated today)