Xamarin bindings for the Socket.IO Clients. Socket.IO for Xamarin
using SocketIO.Client;
SocketIO.Client.Socket socket;
In the OnCreate
method or anyhwere else you would like, you can now make the connection
socket = IO.Socket ("http://chat.peruzal.co.za");
socket.On (Socket.EventConnect, (data) => {
Log.Debug(TAG, "Connected");
socket.Emit("add user", "Xamarin Android");
});
socket.On ("new message", (data) => {
Log.Debug(TAG, data.ToString());
});
socket.Connect ();