1.1.0 • Published 8 years ago

bap-node-microframework-ping-module v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

ping-module

A sample module ping/pong

Installing

To install and add the dependency to the package.json, run the following command:

npm install bap-node-microframework-ping-module --save

Using

To activate the ping module, write the following code in app/kernel.ts:

// app/kernel.ts
...
import { PingModule } from "bap-node-microframework-ping-module";
...

export class Kernel extends KernelInterface {

    boot(app, io: SocketIO.Server) {
        ...
        new PingModule(app, io);
        ...
    }
}
...

Now, if you go to http://localhost:3000/ping, you will get:

{"ping": "pong"}
1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago