webSocket_Factory

A Web Socket Factory for AngularJS

Added by: Sam Deering

GitHub

Repository

unjavascripter/websocket_factory

Stats

Stars: 0

Watchers: 0

Forks: 0

Author

Diego Coy
Diego Coy

Module Description

:octocat:

webSocket_Factory

A Web Socket Factory for AngularJS

Usage

1- Include a reference to the webSocket_Factory.js file inside your index.html, like:

<script src="scripts/webSocket_Factory.js"></script>

2- Include a reference to the module inside your app dependencies, like:

angular.module("myAwesomeApp", ['unJS'])

3- Call it, like:

webSocket_Factory.sendMessage('ws://echo.websocket.org', {"message": "Hey, socket!"});

You'll receive the response as a console.log(). For this example you'll receive back the message you sent inside the data property

Module stats last updated: 2015-06-07 05:44:46

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!