Realtime organisation gateway
Identify with an API key, optionally resume after a sequence, and subscribe to event patterns.
Request #
const socket = new WebSocket("wss://api.strave.gg/v1/gateway");
socket.addEventListener("open", () => {
socket.send(JSON.stringify({
type: "identify",
token: process.env.STRAVE_API_KEY,
}));
});