我正在使用 Laravel 5.6、Vue.js、Socket.IO
下面是我使用 Socket.IO 发送实时消息的代码
var url = "http://localhost:6001/apps/My_App_ID/events?auth_key=My_Key";
axios.post(url,
JSON.stringify(request))
.then((response) => {
//Message Sent
});
问题:使用 Socket.IO 是否安全,因为它是客户端。任何人都可以看到此信息。
我使用的是 Pusher,因为它很昂贵,所以我将代码更改为使用 Socket.IO