feat pure rpc example

This commit is contained in:
2024-10-28 10:28:56 +00:00
parent 67be91538b
commit e7e423adc6
38 changed files with 161 additions and 707 deletions
@@ -1,13 +0,0 @@
declare module 'rage-fw-shared-types' {
export interface RageFW_ICustomClientEvent {
customClientEvent(greetings: string): void
}
export interface RageFW_ICustomServerEvent {
customServerEvent(greetings: string): void
}
export interface RageFW_ICustomCefEvent {
customCefEvent(greetings: string): void
}
}
+12
View File
@@ -0,0 +1,12 @@
export const events = {
server: {
customServerEvent: 'customServerEvent',
},
client: {
cefReady: 'cefReady',
customClientEvent: 'customClientEvent',
},
browser: {
customBrowserEvent: 'customBrowserEvent',
},
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "@rage-fw/shared",
"description": "Shared data for Rage-FW example",
"version": "0.1.0",
"main": "index.ts"
}