-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
128 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Agent } from "../lib/client"; | ||
import { testAgentUrl } from "./test.config"; | ||
|
||
const agent = new Agent(testAgentUrl, { | ||
api: 'console-test', | ||
agent: 'node', | ||
env: 'dev', | ||
}); | ||
|
||
const formData = new FormData(); | ||
formData.set('name', 'John Doe'); | ||
formData.set('phone', '+100000000000'); | ||
|
||
agent.console.debug('Dumping form data:', formData); | ||
agent.console.debug('Dumping trpc:', { name: 'Jane Doe', ig_username: 42 }); | ||
agent.console.log('Just writing multiple values', true, 42, new Date(), /heeey/ig, new Map([['uhm', 'secret']]), new Error('Task failed successfullly')); | ||
|
||
await agent.flush(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const testStreamId = '0d460d8a-f497-4027-9384-c45378a5a63d'; | ||
export const testAgentUrl = `http://localhost:8000/push/stream/${testStreamId}`; |