- Use correct WebSocket implementation in browser - Pass reconnectionAttemptsExhausted to onDisconnect - Add disconnect function - Fix package types