/legal
Returns the legal moves of a piece.
position
The location of the piece on the board.
Usage
Example
Start a classical game to find out the legal moves of the piece on e2.
ws.send('/start classical fen');
ws.send('/legal e2');
{
"/legal": [
"e3",
"e4"
]
}