Kwwika ceased operation on 01/06/2011. Please migrate to Pusher

API‎ > ‎JavaScript‎ > ‎How to...‎ > ‎

Set your API Key

You can set your API Key when you call connect on kwwika.Service:

var connection = kwwika.Service.connect(
    {
        connectionStatusUpdated: function(status) {},
        apiKey: "YOUR_API_KEY"
    });

This call also establishes a connection to Kwwika identified by the return value "connection". Once you have a connection you can start subscribing to data and publishing data.