const apiInstance = new Fastly.ProductWebsocketsApi();
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
disableProductWebsockets | DELETE /enabled-products/v1/websockets/services/{service_id} | Disable product |
enableProductWebsockets | PUT /enabled-products/v1/websockets/services/{service_id} | Enable product |
getProductWebsockets | GET /enabled-products/v1/websockets/services/{service_id} | Get product enablement status |
disableProductWebsockets({ service_id })
Disable the Websockets product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.disableProductWebsockets(options)
.then(() => {
console.log('API called successfully.');
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |
null (empty response body)
enableProductWebsockets({ service_id })
Enable the WebSockets product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.enableProductWebsockets(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |
getProductWebsockets({ service_id })
Get the enablement status of the WebSockets product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.getProductWebsockets(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |