Questions tagged [loopback]

In telecommunications, loopback, or a loop, is a hardware or software method which feeds a received signal or data back to the sender.

In telecommunications, loopback, or a loop, is a hardware or software method which feeds a received signal or data back to the sender. It is used as an aid in debugging physical connection problems. As a test, many data communication devices can be configured to send specific patterns (such as all ones) on an interface and can detect the reception of this signal on the same port. This is called a loopback test and can be performed within a modem or transceiver by connecting its output to its own input. A circuit between two points in different locations may be tested by applying a test signal on the circuit in one location, and having the network device at the other location send a signal back through the circuit. If this device receives its own signal back, this proves that the circuit is functioning.

1273 questions
3
votes
3 answers

Install Microsoft loopback adapter programmatically from VBS (or C#/VB)

I'd like to programmatically install the MS loopback adapter to automate tunneling of SMB over SSH. All the code I found on the net uses the MS devcon utility, which is not redistributable (cf. http://support.microsoft.com/kb/311272/en-us). Example…
Christian Aichinger
  • 6,989
  • 4
  • 40
  • 60
3
votes
2 answers

Loopback / Express: How to redirect to URL inside a remoteMethod?

I am having a hard time finding any documentation regarding redirecting to a URL inside a model function or remoteMethod. Has anyone here already done this? Please find my code below. Function inside Model (Exposes /catch endpoint) Form.catch =…
Jornve
  • 269
  • 1
  • 5
  • 17
3
votes
2 answers

loopback 2 - defining an array of objects on a model

if I have a usermodel and I define: "events": { "type": [ "Object" ] }, Do I need to define anything else in the usermodel.js to be able to post things like: [{name: 'sample', ...}, ...] to the user table's events column? I ask because if I…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
3
votes
0 answers

Strogngloop/loopback filter by comparing 2 fields of the same model

Here is the schema for MyModel "properties": { "amount": { "type": "number" }, "remaining": { "type": "number" } I want to filter items with equal amount & remaining properties is there some thing like this? const filter =…
mehari
  • 3,057
  • 2
  • 22
  • 34
3
votes
0 answers

How to use FCM instead of GCM with loopback-component-push?

I have an existing loopback application which is about an year old. We were asked to re-implement the app with some different features and marketing. The app has a notification system built using loopback-component-push and is extensively used…
3
votes
1 answer

Is there a plugin like mongoosastic to use with loopback?

I want to use elasticsearch to provide full-text search for my application, After googled i have decided to use mongoosastic, but that plugin is with express. So is there an equivalent plugin to use it with loopback?
jones
  • 1,423
  • 3
  • 35
  • 76
3
votes
0 answers

elemMatch equivalent in postgres

In my loopback application connected to mongoDB, i am using elemMatch to find the list of records. What is the equivalent command/any approach when connected with postgres, to find the list of records present in JSONB array. Am able to execute the…
Vignesh
  • 51
  • 6
3
votes
1 answer

Loopback - getting function back instead of values

For some endpoints I get a function back when called instead of the actual values (code at the end). It looks like that it only appears for nested endpoints through my Patient model. E.g. localhost:3000/api/Patients/{id}/MeasDescPatRels However this…
Shrimbo
  • 43
  • 5
3
votes
1 answer

Loopback "Include" Filter Fails with hasManyThrough Relation

I have 3 models. 2 resource models, account(id, name) and widget(id, name), and 1 mapping model to map between the two widget_to_account(id, account_id, widget_id), to tell what widgets an account has access to, so to speak. When stating the…
Sam Hughes
  • 153
  • 7
3
votes
1 answer

How to access data of another persisted model of loopback from remote method of one persisted model?

'use strict'; module.exports = function (City) { City.GetCurrentPopulation = function (req) { var population; City.app.models.Pupulation.find({where{id:req.id}}, //This line //gives me an error that cannot read property 'find' of undefined…
3
votes
1 answer

Loopback: How can we modify the return data of a built in model function

I created a model named member inherited from the built in model User, But how can I change the format of the login return. ie, currently the invalid login is returning like { "error": { "statusCode": 401, "name": "Error", "message":…
Sanjay Kumar N S
  • 4,653
  • 4
  • 23
  • 38
3
votes
1 answer

Hiding _all_ remote methods in loopback model

I'm using loopback 3. I have this lines of codes in my model's js (survey.js): let enabledRemoteMethods = [] Survey.sharedClass.methods().forEach(function(method) { console.log(method.name, method.isStatic) let matchingEnabledRemoteMethod =…
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
3
votes
1 answer

Translate default error messages in Loopback

My question is pretty simple, which is the best way to translate the default messages in loopback? Example: The `user` instance is not valid. Details: `email` Email already exists (value: "my@email.com").
MatCas
  • 773
  • 8
  • 19
3
votes
2 answers

How do you sort a $text search on $meta: "textScore" with Loopback?

When interacting directly with MongoDB's api, you can do a full text search and sort on the result's score like this: db.someCollection .find({ $text: { $search: "some search phrase" } }, {score: { "$meta":"textScore" }) …
jpoveda
  • 2,137
  • 1
  • 25
  • 34
3
votes
1 answer

How to get accessToken generated whit passport in loopback

I am integrating passport with loopback, and works fine, the problems is how to get the access token. I have a web app (served in a different server than loopback) so: Make the request (in the loopback backend) This redirect me to Facebook, approve…
MatCas
  • 773
  • 8
  • 19