Skip to content

Service setup called before app.io instantiated #131

@ianhaggerty

Description

@ianhaggerty

I need access to io in an service setup() method. This is instantiated in the feathers.socketio() configuration function. However, testing seems to indicate that my services setup() method is being called before the socketio configuration function.

Here's my usage:

        testService = mongodb 'test'
        app
        .configure  feathers.rest()
        .configure  feathers.socketio (io)->
          debugger # this is called after `extendedTestService.setup()`
        .use bodyParser.json()
        .use '/test', extendedTestService
        .listen 3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions