PowerWebSockets

PowerWebSockets Samples

READY-TO-RUN PROJECTS WITH SAMPLE CODE

Getting started

Hello World attack!

This is a step-by-step tutorial that demonstrates the unique mechanisms that PowerWebSockets employs to maximize throughput when pushing a large number of messages asynchronously.

Read the full tutorial

Hello World messaging

This is a step-by-step tutorial that demonstrates how the messaging API of PowerWebSockets is independent from whether a connection is outbound or inbound, enabling the same instance of the service to act both as a server endpoint and as a client at the same time.

Read the full tutorial

Push-to-All

Broadcast using Push-to-All

Demonstrates the ability of the WebSocketService to push a large number of messages to thousands of connections concurrently.

Download

Managing channels and simple publish/subscribe

Client channels are dispatched based on the URI that they use when connecting to the service. Channels subscribed to the same topic are grouped using the instance of WebSocketService that represents that topic.

Download

Basic API

Service, clients and endpoints

Demonstrates how to create and host a service, connect a client to the service and exchange text and binary messages between them.

Download

Streaming binary data and transport compression

Demonstrates how message fragmentation is performed transarently when streaming arbitrary sized data using the streaming API of PowerWebSockets.

Download

Handshake, setting and reading HTTP cookies

Demonstrates how to use the WebSocket handshake to exchange cookies between the client and the service.

Download

Security

TLS security and X.509 certificate authentication

Demonstrates how to use TLS security and how to authenitcate an inbound connection by validating the X.509 certificate provided by the client.

Download

HTTP authentication

Demonstrates how to authenticate a client connection using a username/password combination and HTTP basic authentication.

Download

Lightweight JSON Messaging

JSON messaging service

Demonstrates how to perform requests from a client to messaging service operations.

Download

Broadcast callback

Demonstrates a PowerWebSockets messaging service pushing callbacks to all connected clients concurrently.

Download

Publish/subscribe

A publish/subscribe scenario implemented using LiteJM.

Download

Duplex communication

Demonstrates how a service performs callbacks to a client.

Download

PowerWebSockets-to-WCF interoperability

Demonstrates how a PowerWebSockets endpoint and a WCF endpoint can communicate using WebSocket as transport and LiteJM as encoding.

Download

Peer-to-peer networking

Demonstrates a server organized into a P2P network using the Coordinator service. Clients request the list of available peer servers from the Coordinator and then each client connects to a different server and exchanges messages with it. The P2P servers perform message routing and appear as a single server to all connected clients, sharing the load between them.

Download

Xamarin.Android & Xamarin.iOS

Android-to-WCF duplex

Duplex communication between an Android application and a .NET WCF server using Xamarin.Android and LiteJM.

Download

File Transfer - Binary attachments

An Android application exchanging files with a .NET WCF server using Xamarin.Android and the binary attachments of LiteJM.

Download

Android server

An Android application acting as a WebSocket server and accepting connections from .NET clients.

Download

iOS-to-WCF duplex

Duplex communication between an iOS application and a .NET WCF server using Xamarin.Android and LiteJM.

Download

Simple chat

Demonstrates how to use PowerWebSockets to build an Android chat app that communicates with a .NET server. It features user-to-use private messaging, channel grouping for chat rooms, and user-to-user file transfer.

Download

Get started today.

Download Now