also send heartbeats if websockets are used

i added almost the same code as ```txsockjs.protocols.base.Stub``` to ```txsockjs.protocols.websocket.JsonProtocol```
fixes #14