ts2-sim-server

command module
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 14 Imported by: 0

README

ts2 Sim Server

GoDoc Build Status codecov

This is the home of the ts2 simulation server, the core of the ts2 simulator.

Unless you want to develop your own client and access the simulator through its API, you should go to https://github.com/ts2/ts2 to grab the all-in-one simulator which includes the simulation server.

Install

Binary

Download the binary for your platform from the Release Page. This is a single binary with no dependencies.

Source

You need to install the Go distribution (https://golang.org/dl/) for your platform first.

Then use the go tool:

go get github.com/ts2/ts2-sim-server

Starting the server

ts2-sim-server /path/to/simulation-file.json

The server is running and can be accessed at ws://localhost:22222/ws

Note that the server only accepts JSON simulation files. If you have a .ts2 file, you must unzip it first, extract the simulation.json file inside and start the server on it.

Web UI

The server ships with a minimal Web UI to interact with the webservice.

Start the server and head to http://localhost:22222.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
plugins
Package `server` implements the http/websocket front end for the ts2 simulator
Package `server` implements the http/websocket front end for the ts2 simulator
package simulation contains core logic of ts2
package simulation contains core logic of ts2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL