Commit add67496 authored by 神楽坂玲奈's avatar 神楽坂玲奈

change address

parent baa7c338
......@@ -53,7 +53,7 @@ class Window_LobbyButtons < Window_List
require 'open-uri'
Thread.new {
begin
open('http://mycard-server.my-card.in:9997/match.json') { |f|
open('http://my-card.in/match') { |f|
@waiting = false
if f.read =~ /^mycard:\/\/([\d\.]+):(\d+)\/(.*)$/
room = Room.new(nil, $3.to_s)
......
......@@ -94,7 +94,7 @@ class Ygocore < Game
end
#EventMachine::connect "mycard-server.my-card.in", 9997, Client
ws = WebSocket::EventMachine::Client.connect(:host => "mycard-server.my-card.in", :port => 9998);
ws = WebSocket::EventMachine::Client.connect(:uri => 'ws://my-card.in/rooms.json');
ws.onmessage do |msg, type|
$log.info('收到websocket消息') { msg.force_encoding("UTF-8") }
Game_Event.push Game_Event::RoomsUpdate.new JSON.parse(msg).collect { |room| Game_Event.parse_room(room) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment