Giter VIP home page Giter VIP logo

node-ws-test's Introduction

Node.js Websocket Test

A tiny demo using the einaros/ws WebSockets implementation.

Running Locally

npm install
npm start

Running on Heroku

heroku create
git push heroku master
heroku open

node-ws-test's People

Contributors

jkvor avatar tsloughter avatar zeke 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  avatar

Watchers

 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

node-ws-test's Issues

Same code but working with newer ws and express?

Any suggestions for the same nice simple code but working with newer ws and express?

I have it working with "express": "4.14.0", and "ws": "0.4.32" but the present express is 4.15.0 and the present ws is 2.2.2.

Any idea why it does not work with the new package versions?

Git Warning - remote HEAD refers to nonexistent ref, unable to checkout.

I wanted to test heroku's websocket support and tried to follow the steps in this article:
https://devcenter.heroku.com/articles/node-websockets

However, when I tried the first command:
$ git clone https://github.com/heroku-examples/node-ws-test.git

instead of having a clone of this app, a warning was shown saying:
Cloning into node-ws-test...
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Searching for the message, I found this SO Q&A:
http://stackoverflow.com/q/1961274/66580

But it appears only the owner of the repo could do what is suggested by the answer.

Can't connect to the ws server

I have just copied pasted your code because i'm desperate. But still same error:
test.html:6 WebSocket connection to 'ws://xamchat.herokuapp.com/' failed:

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.