Please use Websockets.Pcl, a much improved version.
WebSocket.Portable is a PCL Profile 259 C# implementation of the WebSocket protocol. This plugin uses .net 4.5 and is compatible with Windows 8, Windows Phone, Windows Phone Silverlight, Xamarin Android, Xamarin iOS, and Xamarin iOS (Classic). This is a fork from esskar.
https://www.nuget.org/packages/WebSocket.Portable.Core/
Important : These must be installed on all platforms. So if you have a XamarinApp.Common and a XamarinApp.Droid, both projects needs the above dependencies.
var client = new WebSocketClient();
// get notified when data has arrived
client.FrameReceived += frame => Console.WriteLine(frame);
// open a web socket connection to ws://echo.websocket.org
await client.OpenAsync("ws://echo.websocket.org");
// send some data
await client.SendAsync("WebSocket.Portable rocks!");
There is a XamarinApp.Droid example located in the /Examples/ folder.
rdavisau : For sockets-for-pcl which makes this possible.
esskar : For starting the websocket abstraction.
Xamarin : For awesome cross platform development tools
Marcin Kulwikowski : For awesome bug finding.
Post onto the Github issue system or contact me via my blog