Async server for handling map operations.
const server = new map.AsyncServer(async (datum) => { const input = datum.value.toString(); return [new map.Message(Buffer.from(input.toUpperCase()))];});await server.start(); Copy
const server = new map.AsyncServer(async (datum) => { const input = datum.value.toString(); return [new map.Message(Buffer.from(input.toUpperCase()))];});await server.start();
Create a new map server.
Async function that transforms input datum to output messages
Start the map server.
Optional
Optional custom Unix socket path
Optional path for server info file
Stop the server gracefully.
Async server for handling map operations.
Example