spec/async/websocket/upgrade.rb in async-websocket-0.12.1 vs spec/async/websocket/upgrade.rb in async-websocket-0.12.2

- old
+ new

@@ -16,18 +16,18 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -require 'async/websocket/server/rack' +require 'async/websocket/adapters/rack' class Upgrade def initialize(app) @app = app end def call(env) - Async::WebSocket::Server::Rack.open(env, supported_protocols: ['ws']) do |connection| + Async::WebSocket::Adapters::Rack.open(env, supported_protocols: ['ws']) do |connection| read, write = IO.pipe Process.spawn("ls -lah", :out => write) write.close