pub fn start(
    port: u16
) -> (JoinHandle<Result<(), ServerError>>, Receiver<ServerMessage>)
Expand description

starts a development server by unpacking any files needed by the gateway worker and starting the miniflare cli in user_grafbase_path in Environment

Errors

returns ServerError::ReadVersion if the version file for the extracted worker files cannot be read

returns ServerError::CreateDir if the WORKER_DIR cannot be created

returns ServerError::WriteFile if a file cannot be written into WORKER_DIR

Panics

The spawned server and miniflare thread can panic if either of the two inner spawned threads panic