sending error on transport creation failure due to bad request
adding test for faulty websocket request
Merge remote branch 'upstream/master' into bug-159-fix
Merge pull request #160 from mjgil/bug-159-fix

adding fix for when websocket is undefined