WebSockets with Pusher

Pusher Channels is a hosted WebSockets solution for building powerful realtime interactive apps. We’ve solved complex realtime infrastructure so you don’t have to.

Whether you have 5 concurrent connections or 1 million, our infrastructure scales with you.

Why should you use WebSockets with Pusher?

Bi-directional data exchange/transfer

By transmitting data in both directions simultaneously through a single connection, you can greatly reduce unnecessary network traffic and delay

Traverse firewalls and proxies with ease

Power through proxies and firewalls, supporting simultaneous two-way upstream and downstream communication

Backwards compatible with HTTP connections

Compatibility with earlier versions of HTTP connection meaning you can switch between HTTP and WebSocket connections as required

Publish/Subscribe event pattern

Channels allows you to send messages to and from a server and receive event-driven responses without continuously polling the server, resulting in a highly efficient data transfer model

What are WebSockets?
WebSockets have represented a long awaited evolution in client/server web technology. They allow a long-held single TCP socket connection to be established between the client and server, enabling bi-directional, full duplex messages to be instantly distributed with little overhead, resulting in a highly efficient, very low latency connection.

Simple to get started

Integrate Pusher Channels in your app quickly and securely with any of our 40+ SDKs. Our library of over 200 tutorials and first class documentation will help you get up and running with WebSockets today.

Publish

pusher.trigger('my-channel', 'my-event', {

"message": "hello world"

});

pusher.trigger('my-channel', 'my-event', {

"message": "hello world"

});

Subscribe

var channel = pusher.subscribe('my-channel');

channel.bind('my-event', function(data) {

alert('Received my-event with message: ' + data.message);

});

var channel = pusher.subscribe('my-channel');

channel.bind('my-event', function(data) {

alert('Received my-event with message: ' + data.message);

});

We love developers

With 40+ libraries, we make it easy build realtime features using WebSockets, whatever your stack

Client libraries
Official server libraries

Get started for free with our sandbox plan

Including 100 connections, 200k daily messages and unlimited channels, Alternatively take a look at our simple self-serve packages, or speak to the team about a tailored solution to your enterprise requirements.