messagingserver.lpr 1023 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. This file is part of the Free Component Library
  3. Copyright (c) 2024 by Michael Van Canneyt [email protected]
  4. FCM (Firebase Cloud Messaging) - Demo program
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. program messagingserver;
  12. {$mode objfpc}{$H+}
  13. uses
  14. {$ifdef unix}
  15. cwstring, cthreads,
  16. {$ENDIF}
  17. fpwebfile, fpwebclient, opensslsockets, fphttpwebclient,
  18. fphttpapp, module.rpc, module.messaging;
  19. begin
  20. DefaultWebClientClass:=TFPHTTPWebClient;
  21. TSimpleFileModule.BaseDir:='./';
  22. TSimpleFileModule.RegisterDefaultRoute;
  23. Application.Title:='FCM Send message demo';
  24. Application.Port:=8910;
  25. Application.Threaded:=True;
  26. Application.Initialize;
  27. Application.Run;
  28. end.