Skip to content

Commit

Permalink
feat(socketio): add support for Socket.IO to expose WebSocket endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Mar 27, 2019
1 parent 62d94a0 commit 423d70b
Show file tree
Hide file tree
Showing 22 changed files with 1,597 additions and 2 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -22,6 +22,7 @@ packages/repository/* @raymondfeng
packages/repository-json-schema/* @bajtos
packages/rest/* @bajtos @raymondfeng
packages/service-proxy/* @raymondfeng
packages/socketio/* @raymondfeng
packages/testlab/* @bajtos
examples/todo/* @bajtos @hacksparrow
examples/express-composition/* @nabdelgadir
Expand Down
1 change: 1 addition & 0 deletions docs/apidocs.html
Expand Up @@ -31,6 +31,7 @@ <h3>List of packages</h3>
<li><a href="./repository-json-schema.html">@loopback/repository-json-schema</a></li>
<li><a href="./rest.html">@loopback/rest</a></li>
<li><a href="./service-proxy.html">@loopback/service-proxy</a></li>
<li><a href="./socketio.html">@loopback/socketio</a></li>
<li><a href="./testlab.html">@loopback/testlab</a></li>
</ul>
</div>
Expand Down
1 change: 1 addition & 0 deletions docs/site/MONOREPO.md
Expand Up @@ -32,6 +32,7 @@ The [loopback-next](https://github.com/strongloop/loopback-next) repository uses
| [repository](https://github.com/strongloop/loopback-next/tree/master/packages/repository) | @loopback/repository | Define and implement a common set of interfaces for interacting with databases |
| [rest](https://github.com/strongloop/loopback-next/tree/master/packages/rest) | @loopback/rest | Expose controllers as REST endpoints and route REST API requests to controller methods |
| [service-proxy](https://github.com/strongloop/loopback-next/tree/master/packages/service-proxy) | @loopback/service-proxy | A common set of interfaces for interacting with service oriented backends such as REST APIs, SOAP Web Services, and gRPC microservices |
| [socketio](https://github.com/strongloop/loopback-next/tree/master/packages/socketio) | @loopback/socketio | Expose controllers as Socket.IO endpoints |
| [testlab](https://github.com/strongloop/loopback-next/tree/master/packages/testlab) | @loopback/testlab | A collection of test utilities we use to write LoopBack tests |
| [tslint-config](https://github.com/strongloop/loopback-next/tree/master/packages/tslint-config) | @loopback/tslint-config | Shared TSLint config to enforce a consistent code style for LoopBack development |

Expand Down
4 changes: 2 additions & 2 deletions greenkeeper.json
Expand Up @@ -30,11 +30,11 @@
"packages/rest-explorer/package.json",
"packages/rest/package.json",
"packages/service-proxy/package.json",
"packages/socketio/package.json",
"packages/testlab/package.json",
"packages/tslint-config/package.json",
"sandbox/example/package.json"
]
}
},
"ignore": ["@types/node"]
}
}
25 changes: 25 additions & 0 deletions packages/socketio/LICENSE
@@ -0,0 +1,25 @@
Copyright (c) IBM Corp. 2017,2019. All Rights Reserved.
Node module: @loopback/socketio
This project is licensed under the MIT License, full text below.

--------

MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
30 changes: 30 additions & 0 deletions packages/socketio/README.md
@@ -0,0 +1,30 @@
# @loopback/socketio

This module uses [socket.io](http://socket.io) to expose controllers as
WebSocket friendly endpoints.

## Basic Use

## Installation

```sh
npm install --save @loopback/socketio
```

## Contributions

- [Guidelines](https://github.com/strongloop/loopback-next/blob/master/docs/CONTRIBUTING.md)
- [Join the team](https://github.com/strongloop/loopback-next/issues/110)

## Tests

Run `npm test` from the root folder.

## Contributors

See
[all contributors](https://github.com/strongloop/loopback-next/graphs/contributors).

## License

MIT
7 changes: 7 additions & 0 deletions packages/socketio/docs.json
@@ -0,0 +1,7 @@
{
"content": [
"index.ts",
"src/**/*.ts"
],
"codeSectionDepth": 4
}
6 changes: 6 additions & 0 deletions packages/socketio/index.d.ts
@@ -0,0 +1,6 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/socketio
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
6 changes: 6 additions & 0 deletions packages/socketio/index.js
@@ -0,0 +1,6 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/socketio
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

module.exports = require('./dist');
8 changes: 8 additions & 0 deletions packages/socketio/index.ts
@@ -0,0 +1,8 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/socketio
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

// DO NOT EDIT THIS FILE
// Add any additional (re)exports to src/index.ts instead.
export * from './src';

0 comments on commit 423d70b

Please sign in to comment.