Added websocket support for no good reason
This commit is contained in:
@@ -17,6 +17,7 @@ import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.ui.*;
|
||||
import io.anuke.mindustry.Mindustry;
|
||||
import io.anuke.mindustry.io.PlatformFunction;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@@ -90,6 +91,8 @@ public class HtmlLauncher extends GwtApplication {
|
||||
setupResizeHook();
|
||||
}
|
||||
});
|
||||
|
||||
Net.setClientProvider(new WebsocketClient());
|
||||
|
||||
Mindustry.platforms = new PlatformFunction(){
|
||||
DateTimeFormat format = DateTimeFormat.getFormat("EEE, dd MMM yyyy HH:mm:ss");
|
||||
|
||||
Reference in New Issue
Block a user