Update mqtt-ws.js

renamed createSocket to connect