Added `onOpen` and `onClose` streams to server websockets, similar to client-side ones. Fixes #42