コード例 #1
0
	    public WebSocketRailsDispatcher(Uri url) 
        {
            this.url = url;
            State = "connecting";
            channels = new Dictionary<String, WebSocketRailsChannel>();
            queue = new Dictionary<long, WebSocketRailsEvent>();
            callbacks = new Dictionary<String, List<EventHandler<WebSocketRailsDataEventArgs>>>();
        
            Connection = new WebSocketRailsConnection(url, this);
	    }
コード例 #2
0
        public WebSocketRailsDispatcher(Uri url)
        {
            this.url  = url;
            State     = "connecting";
            channels  = new Dictionary <String, WebSocketRailsChannel>();
            queue     = new Dictionary <long, WebSocketRailsEvent>();
            callbacks = new Dictionary <String, List <EventHandler <WebSocketRailsDataEventArgs> > >();

            connection   = new WebSocketRailsConnection(url, this);
            connectionId = "";
        }