Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

请问多进程之间的数据如何共享? #1699

@a596544022

Description

@a596544022

我自己封装了一个net协议的物联网插件,使用extend方式引入,但是同时还需要向websocket发送数据,目前通过

this.ctx.app.websocket.io.to(data.stationcode).emit()

无法发送,好像是因为多进程数据不是共享的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions