WebSocket Authentication
Guide how to authenticate your API user to the Niza WebSocket.
Pusher Channel Authorization
var pusher = new Pusher("APP_KEY", {
cluster: "eu",
forceTLS: true,
disableStats: true,
enabledTransports: ["wss", "ws"],
activityTimeout: 10000,
channelAuthorization: {
endpoint: `https://app.niza.io/trade/v1/broadcasting/auth`,
transport: "ajax",
headers: {
"X-API-Key": "[API_KEY]",
"X-API-Sign": "[GENERATED_SIGNATURE]",
"Access-Control-Allow-Origin": "*",
},
},
});
Channel Authorization Endpoint
Name
Value
Name
Type
Description
Last updated