The @dcx-protocol/server package implements a polling mechanism for DcxIssuer. It is not a true server in the sense that its not running something like express to accept incoming http requests. Rather, it simply polls listening for new incoming records with a certain protocolPath (i.e. application). For now, that will be good enough.
DcxServer - Applicant
The @dcx-protocol/server package doesn't have the same mechanism for DcxApplicant because DcxApplicant is intended to be used on client-side (browsers). As such, we expect developers to be running their own local dev framework (next, react, angular, etc) and then install the applicant package into that project. It would, however, be nice if we could come up with some kind of simple server-like mechanism to add to the server package that injects the dcx applicant class and runs a server.
Continuation of #68
DcxServer - Issuer
The
@dcx-protocol/server
package implements a polling mechanism forDcxIssuer
. It is not a true server in the sense that its not running something like express to accept incoming http requests. Rather, it simply polls listening for new incoming records with a certain protocolPath (i.e. application). For now, that will be good enough.DcxServer - Applicant
The
@dcx-protocol/server
package doesn't have the same mechanism forDcxApplicant
becauseDcxApplicant
is intended to be used on client-side (browsers). As such, we expect developers to be running their own local dev framework (next, react, angular, etc) and then install the applicant package into that project. It would, however, be nice if we could come up with some kind of simple server-like mechanism to add to the server package that injects the dcx applicant class and runs a server.Ideas to Try
User Stories
Func Reqs
server/applicant.ts
and import dcx-applicant and dcx-commonnew DcxApplicant
start
methodNext.js Func Reqs
DcxApplicant.start
runs a next.js server (pages router)DWN Server Func Reqs
DcxApplicant.start
runs a the http server from within dwn-server