About hapi-xstate-plugin
A Hapi xState plugin. Compatible with Hapi 18 and xState 4.6.0.
Install
npm install hapi-xstate-plugin --save
Usage
'use strict'; const Hapi = ; const server = host: localhost port: 3000; const startup = async { await server; await serverstart;}; ; console;
To change state, the xState interpreter is available from within Hapi's server.app object:
const xStateInterpreter = serverappxStateInterpreter;xStateInterpreter;xStateInterpreter;