Function createServer

  • Creates a new TCP server with the provided options

    Parameters

    • options: ServerOpts = {}
    • Optional connectionListener: ((socket) => void)
        • (socket): void
        • Parameters

          • socket: Socket

          Returns void

    Returns TCPServer