tanelih/phonegap-bluetooth-plugin — pull request #23 by kozak (2014-07-23 13:00:49+00:00)
Title: Not using BluetoothSocket#isConnected() 

Instead of depending on the implementation of isConnected() method, we assume the connection is ok, when the socket is not null. Writing or reading from a closed/not connected socket will trigger an error like normal.
This is done because isConnected() always returns false on some devices.