-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APP启动时可以启动一个socket server吗? #521
Labels
Comments
// app.js
const server = require('./server');
module.exports = app => {
server.start();
// 如果保证 server 启动之后再启动 egg 应用
app.beforeStart(function*() {
server.start();
});
} |
相关 issue: #269 |
还是放 app 上吧 |
@dead-horse 放 app 的话,你那段示例是会启动多个的了 |
启动多个也没问题,和 http server 一样 |
@atian25 cluster 模块的精粹你还不够熟悉啊 |
@fengmk2 回去补补课 T_T |
ghost
closed this as completed
Mar 6, 2017
Thanks |
ghost
reopened this
Mar 6, 2017
ghost
closed this as completed
Mar 6, 2017
楼主最后怎么解决的呢 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我想在APP启动时开启自己写的socket服务,用来接收ISO-8583报文。用nodejs自带的net模块实现的。这样可以吗?
The text was updated successfully, but these errors were encountered: