{"author_name":"Hitz","categories":[],"author_url":"https://blog.hatena.ne.jp/Hitz/","image_url":null,"title":"EventMachine,Sinatra\u306e\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3 - eventmachine - sinatra - routing","description":"eventmachine\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u5fc5\u8981\u306b\u306a\u308a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u63a2\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 sinatra\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u4e00\u756a\u7c21\u5358\u305d\u3046\u3067\u3059\u3002 # /path/to/emapp.rb %w( rubygems eventmachine shout sinatra/base ).each { |lib| require lib} EventMachine::run do class App < Sinatra::Base get '/' do end end App.run!(:port => 3000) end \u3067\u304ak\u3067\u3059\u3002 \u6642\u9593\u304c\u3042\u3063\u305f\u3089websocket + EventMachine\u306e\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u2026","height":"190","width":"100%","provider_name":"Hatena Blog","version":"1.0","blog_url":"https://hitz.hatenablog.com/","provider_url":"https://hatena.blog","published":"2011-11-25 00:56:20","blog_title":"Hitz's blog","url":"https://hitz.hatenablog.com/entry/20111125/1322236580","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhitz.hatenablog.com%2Fentry%2F20111125%2F1322236580\" title=\"EventMachine,Sinatra\u306e\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3 - eventmachine - sinatra - routing - Hitz&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}