This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'reel' | |
require 'json' | |
require 'pry' | |
class Server < Reel::Server::HTTP | |
include Celluloid::Logger | |
def initialize host = '127.0.0.1', port = 4567 | |
info "listening on #{host}:#{port}" | |
super host, port, &method(:on_connection) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.