Ejemplo n.º 1
0
    void StartBrige()
    {
        osc.ClearAdressHandler();
        osc.SetAddressHandler("/connect", this.OnConnect);
        InformServerOnRegistration(CreateRegisterJsonString("/connect"));

        osc.SetAddressHandler("/disconnect", this.OnDisconnect);
        InformServerOnRegistration(CreateRegisterJsonString("/disconnect"));

        foreach (TopicHandler topicHandler in topicHandlerList)
        {
            RegisterTopicHandler(topicHandler);
        }
    }