Git Product home page Git Product logo

websocket-template's Introduction

websocket-template's People

Contributors

kristianfreeman avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

websocket-template's Issues

Getting the socket to work on localhost

Hi,

I'm trying to get this template to work for localhost development, but so far I've been unsuccessful.

So far, I've taken the following steps:

  1. modify wrangler.toml to include my accound_id
  2. change the websocket protocol from wss to ws for running on localhost
  3. run wrangler dev

However, when visit http://127.0.0.1:8787/ it throws a 400 as it's missing the upgrade header.

Any ideas on how to get rid of this? We want to try using webworker sockets for a multiplayer functionality at Candu, but I'm stuck on how to get setup on localhost development.

Error: The script will never generate a response.

Somehow, I always get Error: The script will never generate a response. when the client closes the connection.
It doesn't affect the functionality, but really spike up the numbers of errors detected.

Is there any workaround?

no master branch for wrangler

When I try wrangler generate this project, receive the error

Error:  Git Error: failed to find branch `master`                                                                            
Error: tried running command:
/home/moledet/.cache/.wrangler/cargo-generate-0.5.0/cargo-generate generate --git https://github.com/cloudflare/websocket-template --name pusher --force
exited with exit status: 1

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.