Skip to content

Instantly share code, notes, and snippets.

@champierre
Created August 31, 2014 13:23
Show Gist options
  • Save champierre/b80c44e7820bb84d0a13 to your computer and use it in GitHub Desktop.
Save champierre/b80c44e7820bb84d0a13 to your computer and use it in GitHub Desktop.
connect to scratch
# TCPSocket を使うため socket ライブラリを読み込みます
require "socket"
# localhost の TCP 番号 42001 番に接続します
socket = TCPSocket.open("localhost", 42001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment