Coder Social home page Coder Social logo

websocket-samples's Introduction

#WebSocket Samples This repository is a collection of WebSocket samples for .NET 4.5

##Getting Started To be able to compile and run you will need the Windows 8 release preview. Detailed instructions on the setup process are here.

##Included Samples

ASP.NET WebSocket Echo

The AspNetWebSocketEcho sample is a simple WebSocket echo server implemented using an IHttpHandler. Includes annotated source.

HttpListener WebSocket + ClientWebSocket

This sample is another echo sample but this one is a binary streaming echo using the ClientWebSocket type (new in Win8 Release Preview) as the client and HttpListener as the server.

WCF Echo

Yet another echo sample, this one is the WCF version of the AspNetWebSocketEcho.

ASP.NET Chat

The AspNetChat sample demonstrates using the Broadcast method on WebSocketCollection for implementing a simple chat server.

WCF Chat

This is the WCF version of the chat app. Very similar to ASP.NET Chat.

WCF NetHttpBinding

The WCFNetHttpBinding sample demonstrates traditional WCF service based development using the new NetHttpBinding. This binding uses WebSockets automatically when used with a duplex contract (i.e. a contract that has a callback contract).

##Other Samples If you are looking for Push Frenzy, the game I demonstrated in my BUILD 2011 talk, it has its own repository:

websocket-samples's People

Contributors

paulbatum avatar

Stargazers

Adam Byle avatar  avatar  avatar Zheng avatar Harper avatar isaac avatar  avatar Sewer. avatar Sertunc SELEN avatar  avatar Rick van Modem avatar Justin Sun avatar Arvin Hubert Echavez avatar Roman Fedorov avatar Jeongrok Oh avatar Lingfu Zhang avatar  avatar Friedhold Matz avatar Andrey Matveev avatar  avatar  avatar Fraser McLean avatar Dxball ☕ avatar eki avatar Imani avatar Hakan Uçar avatar Lavin S avatar  avatar  avatar  avatar  avatar Robert Zhang avatar terry avatar  avatar Alan K. avatar Kevin J. Petersen avatar Oleksii Burianov avatar andy avatar Josh Kennedy avatar  avatar Tok' avatar xJoker avatar Ian M. avatar  avatar  avatar neorin avatar Chen Yu Pao avatar 于斯人也 avatar Mohamoud Mohamed avatar Marc Battaglia avatar Daniel Alvarez avatar Dmitry avatar xai avatar Aaron Powell avatar Adam D. Walling the Temperance avatar Bruce Dodson avatar Kristoffer Schroeder avatar Fabricio Konell avatar Kris avatar Ivan Dorna avatar GJORGJI DIMITROV avatar Andrei Ignat avatar Wenxuan avatar Steven King avatar Steve Hagins avatar  avatar Kwan Lim avatar Ethanz Liew avatar Ted van der Veen avatar Colin Gagich avatar Morten Christensen avatar Nicola Bizzoca avatar upzone avatar  avatar Thanh Truong avatar bo.chen avatar Muhammet ERDOĞAN avatar Martin Ivanov avatar Howard_Lyu avatar Francesco Gusmeroli avatar Magno Dias avatar  avatar Mark Orlassino avatar Alex avatar Caitie McCaffrey avatar  avatar David Luu avatar  avatar José Augusto Guimarães avatar Richard Lowe avatar Simon Leung avatar Joshua Bemman avatar  avatar  avatar Kouichi Nishizawa avatar Prabir Shrestha avatar Jake Scott avatar Christian Sakshaug avatar Duong Quang Duc avatar Andrew Johnston avatar

Watchers

Travis James avatar Prabir Shrestha avatar Howard_Lyu avatar Kris avatar James Cloos avatar  avatar Ethanz Liew avatar KellyDC avatar tradeweapon avatar Jaja avatar  avatar Friedhold Matz avatar Ralf Zeiler avatar Edalat Feizi avatar  avatar

websocket-samples's Issues

Localhost with Port Number connection refused

After downloading the Sample I've attempted to run sample WebSocket-Samples-master\AspNetWebSocketEcho using a port number without success. Whenever localhost has a Port Number such as localhost:57570, The connection errors with this notice "WebSocket connection to 'ws://localhost/WebSocket-Samples-master/AspNetWebSocketEcho/echohandler.ashx' failed: Error during WebSocket handshake: Unexpected response code: 500"

Doc HTML trimmed

Hi Paul, this is mainly an issue with github but I reported it to them as the web view of docs with mixed line endings seems to be messed up and they didn't seem to care much. If you look at this page you can see that the html is trimmed and missing a good bottom part.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.