Git Product home page Git Product logo

alchemy-websockets-example's Introduction

Alchemy Websockets Example

A simple chat server built using Alchemy Websockets and Alchemy Websockets Client Library.

Install or build and run the server source and run the chat.html file. Note: flash websockets doesn't appear to work locally; test it in a websocket-enabled browser or host a server elsewhere and connect to it over IP / username.

You can connect to server.alchemywebsockets.net for a test server as well.

Feel free to try out the online example at chat.alchemywebsockets.net

Usage

Enter in a server name and port (or used the pre-filled defaults.) Click connect, then enter a username and register. You can now chat with anyone online. Connects and disconnects are announced, as is the total number of online people (hover over the number to see how many.)

You can also type "/nick Name" to change your current name to "Name".

License

Copyright 2011, Olivine Labs, LLC.

MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

alchemy-websockets-example's People

Contributors

ajacksified avatar doriangray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alchemy-websockets-example's Issues

Clean disconnect issue

I am trying to play with your example chat application. I'm running the server on ArchLinux using Mono/.Net 4.0 and for client browsers I've tried Qupzilla 1.4.3 (webkit v537.21) and Google Chrome (27.0.1453.94).

On the chat client web page when I click the disconnect button the server crashes with the following exception:

Unhandled Exception:
System.ArgumentException: Buffer is empty
Parameter name: buffers
at System.Net.Sockets.Socket.Send (IList1 buffers, SocketFlags socketFlags, System.Net.Sockets.SocketError& errorCode) [0x00000] in <filename unknown>:0 at System.Net.Sockets.Socket.Send (IList1 buffers, SocketFlags socketFlags) [0x00000] in :0
at System.Net.Sockets.Socket+Worker.SendGeneric () [0x00000] in :0

When this happens the OnDisconnect function is obviously not called for the context. If I just close the tab displaying the chat client the disconnections is handled cleanly. The following call in the demo causes the problem, Am I missing something>

$('#disconnect').bind('click', function(e) {
  e.preventDefault();
  AlchemyChatServer.Stop();
});

References left to removed projects

The ChatServer.sln still tries to include Libraries\Alchemy-Websockets\src\Alchemy\Alchemy.csproj, but that project file doesn't exist. It was removed when the project was switched to the NuGet package, just the reference was still left in the solution.

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.