Adds onopen and onclose as options
Reverts a change in default option 'getSocket'
Adds missing semicolon
Merge pull request #8 from Textalk/onopen-onclose

Adds onopen and onclose as options