Skip to content

rhuddlestone/pubsub-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Pub/Sub examples

This repository contains examples of using Cloudflare Pub/Sub with different languages, and instructions to use clients. It is not affiliated with Cloudflare in any way. Note that these examples were made during the beta, so they may not work anymore if the API changes.

The create_required_info.py file can be used to create a .env with the information needed to use the examples. To use this program, set the following environment variables:

  • CF_API_EMAIL: The email address associated with your Cloudflare account
  • CF_API_KEY: The Global API Key associated with your Cloudflare account (this may change after the beta)
  • CF_ACCOUNT_ID: The Account ID associated with your Cloudflare account

This program also support .env files, so you can copy the .env.example and set the apporpriate values.

List of examples

  • Python (using paho-mqtt)
  • NodeJS (Both typescript and javascript, using mqtt)

List of guides

About

Examples and guides on how to use Cloudflare Pub/Sub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.0%
  • TypeScript 16.3%
  • JavaScript 16.1%
  • Shell 1.6%