Client library

Realtime Android (Kotlin) with WebSockets

Native Android apps in Kotlin or Java.

Sign in to see these snippets with your own cluster host. Sign in

Using an AI coding agent? Copy the agent prompt ↓

  1. Install

    implementation("com.pusher:pusher-java-client:2.4.4")
  2. Subscribe to a channel

    val options = PusherOptions()
        .setHost("ws.hibira.io")
        .setWsPort(443)
        .setWssPort(443)
        .setUseTLS(true)
    
    val pusher = Pusher("YOUR_APP_KEY", options)
    pusher.connect()
    
    pusher.subscribe("orders").bind("order-shipped") { event ->
        Log.d("orders", event.data)
    }

Agent prompt

Paste this into Claude Code, Cursor, GitHub Copilot or another AI coding agent, and it will wire Hibira into your Android (Kotlin) project with the settings above.

Replace YOUR_APP_KEY and the other placeholders with the values from your dashboard, or let the agent leave them as environment variables for you to fill in.

Or connect the Hibira MCP server, and your agent can create the app and fill in its credentials itself. Connect your AI coding agent →

Use the app key and secret from your dashboard. Channels, events and authorization endpoints work exactly as they do with Pusher. Library reference ↗