Websocket refactor to use Phoenix.Socket.Transport
This will make us compatible with Cowboy and Bandit
This commit is contained in:
parent
79d69ce72a
commit
64ad451a7b
4 changed files with 133 additions and 234 deletions
|
|
@ -9,6 +9,15 @@ defmodule Pleroma.Web.Endpoint do
|
|||
|
||||
alias Pleroma.Config
|
||||
|
||||
socket("/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler,
|
||||
longpoll: false,
|
||||
websocket: [
|
||||
path: "/",
|
||||
compress: false,
|
||||
error_handler: {Pleroma.Web.MastodonAPI.WebsocketHandler, :handle_error, []}
|
||||
]
|
||||
)
|
||||
|
||||
socket("/socket", Pleroma.Web.UserSocket,
|
||||
websocket: [
|
||||
path: "/websocket",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue