![]() ![]() Get those dependencies by running: npm install pusher dotenv express express-session body-parser mysql js-sha512 jsdom - save jsdom for emulating a subset of a web browser.body-parser for providing body parsing middleware.express-session for providing an Express middleware.express to configure and manage an HTTP server.dotenv for parsing the variable.env file.To go through the tutorial seamlessly, install the following dependencies: Now, go ahead and change the directory into the newly created folder: cd pusher-event-chat To create a new application, create a new directory: mkdir pusher-event-chat ![]() Go to your app, from the side navigation, click App Keys. To use Pusher channels, you need App Keys for your app. Tech stack you intend to integrate Pusher with for a better setup experience (optional). ![]() It's not possible to change the cluster afterward. Cluster - The physical location of the servers that handle requests from your Channels app.App name - A name is for your reference and you can change it later.Once signed in, navigate to Channels and click Create app.Ĭonfigure your app by proving the following information: ![]() NOTE: Pusher's free sandbox plan comes with 200,000 messages per day and 100 concurrent connections (total number of simultaneous connections across your app) so it will be more than sufficient for this tutorial app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |