Skip to content

Commit

Permalink
LOG 4
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Jan 19, 2024
1 parent b18a68b commit abdb5ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getFeed = (user_pubkey: string | undefined, pubkey: string | undef
payload.include_replies = include_replies;
}

console.log('FEED SEND MESSAGE')
console.log('FEED SEND MESSAGE: ', payload)
sendMessage(JSON.stringify([
"REQ",
subid,
Expand Down
2 changes: 1 addition & 1 deletion src/sockets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const reset = () => {

export const sendMessage = (message: string) => {
const sct = socket();
console.log('FEED CONNECTED: ', sct)
console.log('FEED CONNECTED: ', sct, message, isConnected());
if (sct && isConnected()) {
console.log('FEED CONNECTED EVENT')
const e = new CustomEvent('send', { detail: { message, ws: socket() }});
Expand Down

0 comments on commit abdb5ff

Please sign in to comment.