start
Starts the Mokksy server and blocks until the port is bound and ready to accept requests.
Returns this for chaining:
val mokksy = Mokksy().start()Content copied to clipboard
Intended for Java callers and blocking JVM test setups. Kotlin callers should prefer MokksyServer.startSuspend combined with MokksyServer.awaitStarted.
Starts the Mokksy server on the given dispatcher, blocking until the port is bound.
Returns this for chaining. The dispatcher does not affect which thread is blocked — runBlocking always blocks the calling thread. This overload exists for Kotlin callers that need coroutine context control; Java callers should use start with no arguments.
Parameters
dispatcher
The CoroutineDispatcher for the runBlocking coroutine context.