• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Romakita / ts-express-decorators / 1965
100%

Build:
DEFAULT BRANCH: master
Ran 03 May 2018 06:09AM UTC
Jobs 5
Files 235
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1965

push

travis-ci

Romakita
feat(socketio): Add argument on Nsp decorator

Argument given to Nsp decorator allow to inject on the property class (socket service),
a specific namespace (other than the default Namespace used by the socket service).

```typescript
import * as SocketIO from "socket.io";
import {SocketService, IO, Nsp, Socket, SocketSession} from "@tsed/socketio";

@SocketService("/my-namespace")
export class MySocketService {

    @Nsp nsp: SocketIO.Namespace;

    @Nsp("/my-other-namespace")
    nspOther: SocketIO.Namespace; // communication between two namespace

    constructor(@IO private io: SocketIO.Server) {}
    /**
     * Triggered the namespace is created
     */
    $onNamespaceInit(nsp: SocketIO.Namespace) {

    }
    /**
     * Triggered when a new client connects to the Namespace.
     */
    $onConnection(@Socket socket: SocketIO.Socket, @SocketSession session: SocketSession) {

    }
    /**
     * Triggered when a client disconnects from the Namespace.
     */
    $onDisconnect(@Socket socket: SocketIO.Socket) {

    }
}
```

Closes: #307

1040 of 1140 branches covered (91.23%)

3295 of 3295 relevant lines covered (100.0%)

806.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1965.1 03 May 2018 06:13AM UTC 0
100.0
Travis Job 1965.1
2 1965.2 03 May 2018 06:12AM UTC 0
100.0
Travis Job 1965.2
3 1965.3 03 May 2018 06:09AM UTC 0
100.0
Travis Job 1965.3
4 1965.4 03 May 2018 06:10AM UTC 0
100.0
Travis Job 1965.4
5 1965.5 03 May 2018 06:15AM UTC 0
100.0
Travis Job 1965.5
Source Files on build 1965
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1965
  • 018cf711 on github
  • Prev Build on master (#1964)
  • Next Build on master (#1968)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc