GithubHelp home page GithubHelp logo

fastly / compute-starter-kit-rust-websockets Goto Github PK

View Code? Open in Web Editor NEW
4.0 15.0 1.0 44 KB

WebSockets starter kit for Fastly Compute (Rust)

Home Page: https://developer.fastly.com/solutions/starters/

License: MIT License

Rust 100.00%
compute-starter fastly-oss-tier1

compute-starter-kit-rust-websockets's Introduction

Fastly Compute WebSockets starter kit for Rust

Deploy to Fastly

Learn about Fastly Compute with WebSockets using a basic starter that sends connections to a backend.

Note: The WebSockets feature handles passthrough connections only. If you want to handle WebSocket connections from clients without having to run a WebSocket backend, see the Fanout Starter Kit.

For more details about this and other starter kits for Compute, see the Fastly Documentation Hub.

Setup

The app expects a configured backend named backend that points to a WebSocket server. For example, if the WebSocket server is available at domain websockets.example.com, then you'll need to create a backend on your Compute service named backend with the destination host set to websockets.example.com and port 443. Also set 'Override Host' to the same host value.

After deploying the app and setting up the backend configuration, all connections received by the service will be passed to the backend.

Note

This app is not currently supported in Fastly's local development server, as the development server does not support WebSockets features. To experiment with WebSockets, you will need to publish this project to your Fastly Compute service, using the fastly compute publish command.

Security issues

Please see SECURITY.md for guidance on reporting security-related issues.

compute-starter-kit-rust-websockets's People

Contributors

doramatadora avatar gfx avatar harmony7 avatar integralist avatar jakechampion avatar jkarneges avatar journie-fastly avatar triblondon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gfx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.