-
Notifications
You must be signed in to change notification settings - Fork 2
Sample application
Per Rovegård edited this page Feb 19, 2015
·
1 revision
The Visual Studio solution contains a sample project, Nancy.AspNet.WebSocket.Sample. The sample application lets the user connect to a named drawing board and draw on a canvas. Users connected to the same drawing board will see canvas strokes from all other users. There is also a rudimentary chat functionality.
The sample demonstrates the following:
- Connecting a websocket
- Disconnecting a websocket from the web client
- Sending text messages and binary data from a web client
- Dispatching test messages and binary data to all connected web clients
- Integrating websocket functionality with the Nancy "environment"
- Testing of a websocket endpoint (through Nancy.AspNet.WebSocket.Sample.Tests)