Added libs

This commit is contained in:
Lucas
2026-01-25 13:55:46 +10:00
parent 575c682afc
commit f70af3c4ea
229 changed files with 26983 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { useP2postStore } from '../stores/p2postStore'
const p2postStore = useP2postStore()
export default function registerSocketEvents(socket) {
socket.on('connect', (data) => {
console.log('Connected p2Post')
}),
socket.on('newPost', (data) => {
p2postStore.addPost(data)
console.log('New Post', data)
})
}