如何将数据从 sail 水线模型流式传输到 sails 套接字?
How to stream data to a sails socket from a sail waterline model?
我正在按照 Sails documentation
中给出的简单示例
// Start the stream. Pipe it to sockets.
User.stream({name:'Walter'}).pipe(req.socket.emit);
我遇到了这个错误
TypeError: dest.on is not a function
at Stream.pipe
知道会发生什么吗?
我正在使用 sails-mysql-transactions 作为适配器。目前这不支持 .stream()
方法。
我正在按照 Sails documentation
中给出的简单示例// Start the stream. Pipe it to sockets.
User.stream({name:'Walter'}).pipe(req.socket.emit);
我遇到了这个错误
TypeError: dest.on is not a function
at Stream.pipe
知道会发生什么吗?
我正在使用 sails-mysql-transactions 作为适配器。目前这不支持 .stream()
方法。