GithubHelp home page GithubHelp logo

hcfyapp / connect.io Goto Github PK

View Code? Open in Web Editor NEW
38.0 3.0 5.0 282 KB

Real-time bidirectional event-based and Promise friendly communication in Chrome Extensions and Apps inspired by Socket.IO

JavaScript 12.35% TypeScript 87.65%
chrome-extension chrome-app promise bidirectional socket real-time

connect.io's People

Contributors

lmk123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

connect.io's Issues

使用chrome-connect.js报错

您好,在页面引用chrome-connect.js之后,报错如图:
image
我是根据文档中,
Use with <script>
部分 将js文件下载下来后,引入到html结构中的,请问怎么解决?

请教个问题 o((⊙﹏⊙))o.

大佬,代码里有些地方看不懂 可以请教你嘛 😂 能留个联系方式嘛? 感觉总是留issue是不是不太好,23333。

port.ts

new Promise((resolve, reject) => {
        this.emit(
              (msg as IRequestMessage).name,
              (msg as IRequestMessage).data,
              resolve,
              reject
         )
}).then(
         response => {
              port.postMessage({ id, response })
          },
          error => {
              port.postMessage({ id, error })
          }
 )

为什么this.emit后面两个参数要传 resolve 和 reject,会被调用嘛?

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.