Update hello world

This commit is contained in:
Chocobozzz 2022-11-16 15:34:52 +01:00
parent be83d13c23
commit fa9005ab1b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 14 additions and 11 deletions

View File

@ -178,6 +178,8 @@ async function register ({
}, 1000) }, 1000)
}) })
// Backward compatibility
if (registerWebSocketRoute) {
registerWebSocketRoute({ registerWebSocketRoute({
route: '/toto', route: '/toto',
@ -187,6 +189,7 @@ async function register ({
}) })
} }
}) })
}
} }
async function unregister () { async function unregister () {

View File

@ -1,12 +1,12 @@
{ {
"name": "peertube-plugin-hello-world", "name": "peertube-plugin-hello-world",
"version": "0.0.21", "version": "0.0.22",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "peertube-plugin-hello-world", "name": "peertube-plugin-hello-world",
"version": "0.0.21", "version": "0.0.22",
"dependencies": { "dependencies": {
"ws": "^8.9.0" "ws": "^8.9.0"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "peertube-plugin-hello-world", "name": "peertube-plugin-hello-world",
"version": "0.0.21", "version": "0.0.22",
"description": "Hello world PeerTube plugin example", "description": "Hello world PeerTube plugin example",
"engine": { "engine": {
"peertube": ">=3.2.0" "peertube": ">=3.2.0"