Angular Websocket is a WebSocket service tailored for AngularJS 1.x applications, exposed primarily through the $websocket factory in the ngWebSocket module. It wraps the native WebSocket API in a way that plays nicely with Angular’s digest cycle, ensuring that UI updates are triggered when messages arrive. The library manages an internal send queue so that messages requested before the socket is open are safely sent once the connection is ready. It offers a set of convenience methods and callbacks, such as onMessage, onOpen, onClose, and onError, to keep WebSocket handling consistent with other Angular services. Developers can filter messages by string or regular expression and optionally disable automatic $digest calls when needed for performance. The project can be consumed via Bower, npm, CDN, or manual download, making it easy to introduce into legacy build setups. It aims to be the “missing WebSocket module” for AngularJS.

Features

  • $websocket factory that wraps native WebSocket APIs in an AngularJS-friendly service
  • Automatic digest integration so incoming messages update Angular scopes correctly
  • Send queue mechanism that buffers messages until the connection is ready
  • Flexible message handling with filters via strings or regular expressions
  • Rich event callbacks for open, close, message, and error handling
  • Multiple distribution options including npm, Bower, CDN, and direct download

Project Samples

Project Activity

See All Activity >

Categories

HTTP Clients

License

MIT License

Follow Angular Websocket

Angular Websocket Web Site

Other Useful Business Software
Assembled is the only unified platform for staffing and managing your human and AI support team. Icon
Assembled is the only unified platform for staffing and managing your human and AI support team.

AI for world-class support operations

Assembled is the only platform that unifies AI agents and intelligent workforce management to power fast and flexible support operations. Built for scale, we help teams automate over 50% of customer interactions, forecast with 90%+ accuracy, and optimize staffing across in-house and BPO teams. Orchestrate every chat, email, or call, balancing workloads between human and AI agents in real time — without sacrificing quality or control. Trusted by Stripe, Canva, and Robinhood, Assembled transforms support from a cost center into a strategic advantage. Our Workforce and Vendor Management tools connect forecasting, scheduling, and performance for smarter staffing decisions. AI Agents automate conversations across channels with your workflows and brand voice. AI Copilot empowers agents with real-time guidance, suggested replies, and one-click actions for faster, higher-quality resolutions.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Angular Websocket!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTTP Clients

Registered

2025-11-18