服务器事件

连接服务器

示例( Windows ):

Quobject.SocketIoClientDotNet.Client.IO.Options options = new IO.Options();
options.ForceNew = true;
options.Multiplex = true;
socket = IO.Socket(InteractionApis.BaseUriString + ":8080", options);

接收事件

示例(Windows):

 socket.On("file_added", new Action<object>((filename) =>
            {
                try
                {
                    this.Dispatcher.Invoke(new Action(() =>
                    {
                        string name = filename.ToString();
                        if (page != null)
                        {
                            page.FileAdded(name);
                        }

                    }));
                }
                catch { }
            }));

事件列表

camera_add

相机连接成功

camera_remove

相机断掉

liveshow_error

实时取景发送错误

file_added

新照片创建

timelaspe_error

定时拍照错误