MCPcopy
hub / github.com/slackapi/node-slack-sdk / createServer

Method createServer

packages/events-api/src/adapter.js:30–37  ·  view source on GitHub ↗
(path = '/slack/events')

Source from the content-addressed store, hash-verified

28
29 // TODO: options (like https)
30 createServer(path = '/slack/events') {
31 // NOTE: this is a workaround for a shortcoming of the System.import() tranform
32 return Promise.resolve().then(() => {
33 debug('server created - path: %s', path);
34
35 return http.createServer(this.requestListener());
36 });
37 }
38
39 start(port) {
40 return this.createServer()

Callers 6

startMethod · 0.95
test-basic.jsFile · 0.45
test-adapter.jsFile · 0.45
verify.jsFile · 0.45
server.jsFile · 0.45
index.jsFile · 0.45

Calls 1

requestListenerMethod · 0.95

Tested by

no test coverage detected