Fix #317 SockJS: Add heartbeat for WebSocket transport