a couple tiny fixes

onmessage/onopen/etc. listeners were impossible to override via constructor, the default stub in onopen had an invalid send() call