Skip to content

Commit

Permalink
say hello at first to make everyone happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Aug 7, 2024
1 parent db509e6 commit 40fd1d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/service/service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ function m.testVersion()
end
end

function m.sayHello()
proto.notify('$/hello', 'world')
end

function m.lockCache()
local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
Expand Down Expand Up @@ -284,6 +288,8 @@ function m.start()

require 'provider'

m.sayHello()

m.eventLoop()
end

Expand Down

1 comment on commit 40fd1d7

@RoloEdits
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is invalid JSONRPC:

4.2 Parameter Structures
If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object.

by-position: params MUST be an Array, containing the values in the Server expected order.
by-name: params MUST be an Object, with member names that match the Server expected parameter names. The absence of expected names MAY result in an error being generated. The names MUST match exactly, including case, to the method's expected parameters.

Please sign in to comment.