protect ws.send() from throwing 'not opened' if not connected