Skip to content

createServer

createServer(options): ShoehiveServer

Defined in: server/server.ts:395

Creates a Shoehive server.

const shoehive = createServer({ games: [ticTacToe] });
await shoehive.listen({ port: 3000 });

ServerOptions

ShoehiveServer