0
O想要在SailsJS套接字上使用自定義方法。定製路由SailsJS和套接字
new: function(req, res){
Talk.create({message: "text"}).exec(function created(err,created){
Talk.publishCreate(created);
res.send(created);
});
}
在客戶端上我做的完全一樣說明如下:http://beta.sailsjs.org/#/documentation/reference/websockets/resourceful-pubsub/publishCreate.html
publishCreate不發送更新客戶端。有什麼我失蹤?