Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-websocket

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-websocket

WebSocket service for Angular.js

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
increased by0.73%
Maintainers
1
Weekly downloads
 
Created
Source

angular-websocket Build Status

WebSockets for Angular.js
Email me if something is broken.

#How do I add this to my project?

You can download angular-websocket by:

  • (prefered) Using bower and running bower install angular-websocket --save
  • Using npm and running npm install angular-websocket --save
  • Downloading it manually by clicking here to download development unminified version
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script>
<script src="app/bower_components/angular-websocket/angular-websocket.js"></script>
<script>
  angular.module('YOUR_APP', [
    'angular-websocket',
    'controllers'
  ])
  .config(function(WebSocketProvider){
    WebSocketProvider
      .prefix('')
      .uri('ws://echo.websocket.org/');
  });

  angular.module('controllers', [])
    .controller('MainCtrl', function($scope, WebSocket) {

      WebSocket.onopen(function() {
        console.log('connection');
      });

      WebSocket.onmessage(function(event) {
        console.log('message: ', event.data);
      });



    });
</script>

FAQs

Package last updated on 10 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc