Rails.application.routes.draw do
  if Rails.version >= '4.0.0'
    match "/websocket", :to => WebsocketRails::ConnectionManager.new, via: [:get, :post]
  else
    match "/websocket", :to => WebsocketRails::ConnectionManager.new
  end
end

Rails.application.routes.draw do
  if Rails.version >= '4.0.0'
    get "/websocket", :to => WebsocketRails::ConnectionManager.new
  else
    get "/websocket", :to => WebsocketRails::ConnectionManager.new
  end
end

Remove deprecated POST /websocket route.
Remove deprecated POST /websocket route.
