Skip to content

Use custom transport #232

@conradz

Description

@conradz

Is there any way to use a custom transport for the queries? I need to use a custom function to get the requests (using AJAX, WebSockets, in-memory, or any other method).

Ideally I would be able to specify a function to the remote option, like in the following:

$(el).typeahead({
  name: 'custom',
  remote: function(query, done) { done([query, 'test', 'test2']); }
});

Another way would be to allow specifying a transport object for the queries. Currently it creates a new Transport object if remote is specified, and does not allow specifying a custom transport (at least not that I saw).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions