Giter VIP home page Giter VIP logo

Comments (7)

akrantz avatar akrantz commented on August 20, 2024 1

from office-addin-scripts.

guillermoparral1995 avatar guillermoparral1995 commented on August 20, 2024

Thanks for the tip! But what if I want to run two of them in parallel, one in 3000 and the other one in 44389? Is there any way to do something like that? I think I wasn't clear in the description of the issue, sorry about that

from office-addin-scripts.

akrantz avatar akrantz commented on August 20, 2024

Why/how would you have two instances of the same add-in from the same code base? I was thinking you had two separate add-ins running inside office at one time. Usually, this would come from two separate code bases each with their own dev server instance.

from office-addin-scripts.

guillermoparral1995 avatar guillermoparral1995 commented on August 20, 2024

I have a server listening for two different ports, and my add-in sends a message to said server, and then listens for a response. I want to have two instances, each running in a different port so the response sent from the server can be heard from the add-in and then have the add-in do something according to that response. All of this is accomplished by WebSockets and the main goal is to have a Google Sheets kind of behaviour through this communication, which can't be accomplished if both instances run in the same port

from office-addin-scripts.

akrantz avatar akrantz commented on August 20, 2024

Well I'm not a websocket expert, but wouldn't you only need one webpack-dev-server instance, and create two separate websockets off of that?

from office-addin-scripts.

guillermoparral1995 avatar guillermoparral1995 commented on August 20, 2024

You were right, there wasn't any need for two instances. Thanks for all the help! I'll close this issue

from office-addin-scripts.

akrantz avatar akrantz commented on August 20, 2024

I'm glad you were able to resolve this!

from office-addin-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.