bug: chat related websocket issue
I have observed this on both the develop and the latest v0.9.9 release.
On a fresh instance, if we have the chat enabled, i.e., setting chatDisabled = false, then, we will see a bunch error messages from the pleroma service as follows:
Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] CONNECT Pleroma.Web.UserSocket
Feb 22 18:08:12 ontario mix[16694]: Transport: :websocket
Feb 22 18:08:12 ontario mix[16694]: Connect Info: %{}
Feb 22 18:08:12 ontario mix[16694]: Parameters: %{"token" => "undefined", "vsn" => "2.0.0"}
Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] Replied Pleroma.Web.UserSocket :error
At the same time, you will find an entry in the Nginx access log as such:
xxx.xxx.xxx.xxx - - [22/Feb/2019:20:48:08 -0500] "/socket/websocket?token=undefined&vsn=2.0.0" 403 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
Turning off chat will not see any these.
My running FE commit hash is 'ed3c318b'.