An open API service indexing awesome lists of open source software.

https://github.com/mkusz/ng2_websockets_quickstart

Angular 2.0.0-beta.1 with websocket quickstart
https://github.com/mkusz/ng2_websockets_quickstart

Last synced: 8 months ago
JSON representation

Angular 2.0.0-beta.1 with websocket quickstart

Awesome Lists containing this project

README

          

# ng2_websockets_quickstart
This is a short example how to use websockets in Angular2.

In this example you can see a very simple reconnection algorithm without any external websocket implementation.

It can be run using example echo websocket from [www.websocket.org](http://www.websocket.org/echo.html) or by running local Python websocket serwer ([Tornado](http://www.tornadoweb.org/)). Websocket from Python can also be configured to run in pushing message mode (no data send from web browser). Just read commments in code.

To run this example you need to use npm and run Python script (works for Python > 2.7).