Commit Graph
33 Commits
Author SHA1 Message Date
Oleksandr Honcharov ce5824db81 init 2024-09-15 21:39:04 +03:00
ziggi 0db97851cd Fix call procedure rejection with no args provided 2020-01-21 21:14:10 +03:00
Pavel Torbeev a47449e7cb Added: on/register return functions off/unregister
You can use:
const off = rpc.on('event', handler);
// do any actions
off();

Similarly:
const unregister = rpc.register('event', handler);
//do any actions
unregister();
2019-12-18 22:48:40 +05:00
micah 206836248d Revert parameter changes for call options 2019-11-02 15:11:02 -04:00
Tim Koepsel 528abb73a4 broken default param fix 2019-10-23 01:28:24 +02:00
micah d6cd63b201 Add event system 2019-06-02 14:44:53 -04:00
micah d0fbc6993d Add noRet option 2019-06-02 13:12:11 -04:00
micah 18deb4d908 Add options including timeout option 2019-06-02 12:08:28 -04:00
micah 57c234c6e9 Fix rarely sending incorrect entities 2019-06-02 10:25:10 -04:00
Yiin cf034506b0 Add default export
it's just somewhat annoyign to write `import * as rpc from 'rage-rpc';` every time you want to import whole package. You could import only the methods you use, but they by themselves does not exactly describe what they do (e.g. `register()` can mean a lot of things, while rpc.register is much easier to understand)
2019-04-03 02:57:55 +03:00
Yiin d184fef3dd Persist browserId between page reloads. 2019-03-17 20:54:45 +02:00
micah 0fc8eeae89 0.2.1 2019-03-09 17:29:34 -05:00
pavlov3317 48afea0bd1 handle quote escaping by stringifier instead manual handling 2019-03-09 17:33:55 +05:00
micah 6114418264 Add Entity serialization/deserialization 2019-03-06 15:01:37 -05:00
micah ca36777813 Add browser to CEF->client callback info 2019-03-06 11:58:31 -05:00
micah a1299c25b4 Fix single quotes in CEF events (#2) 2019-03-06 11:34:05 -05:00
micah b1fd6fea4d Add hack to fix RAGE promise bug 2019-02-11 00:07:13 -05:00
Micah Allen 85e435ea1d Direct callBrowsers call to single browser instance 2019-01-12 13:06:59 -05:00
Micah Allen 92250e1f29 Increase outgoing CEF return performance 2019-01-11 00:40:38 -05:00
Micah Allen 94ffe6c474 Use Typescript 2019-01-10 18:57:44 -05:00
Micah Allen 6bd89ddeea Fix multiple CEF bug and add player verification 2018-11-05 10:06:37 -05:00
Micah Allen 24d9313c99 Add support for multiple instances 2018-11-04 12:06:06 -05:00
Micah Allen d40908d8d0 Add basic webpack build 2018-11-02 01:10:24 -04:00
Micah Allen b628bb9ee9 Add some validation 2018-11-02 00:36:03 -04:00
Micah Allen 26c110f316 Add new Server --> CEF implementation 2018-11-01 22:01:11 -04:00
Micah Allen d748eb892b Add new CEF --> Server communication 2018-11-01 20:48:56 -04:00
Micah Allen a7bbc8032b Undo two-step "thru" technique 2018-11-01 18:59:45 -04:00
Micah Allen ac3ba8d1eb Add client-->CEF RPC 2018-11-01 18:47:57 -04:00
Micah Allen 5f26602327 Add CEF-->client RPC 2018-11-01 16:54:32 -04:00
Micah Allen 71eaaf4da8 Add CEF-->server RFC 2018-11-01 16:40:00 -04:00
Micah Allen dc0d914b27 Add initial client<-->server RPC 2018-11-01 15:05:48 -04:00
Micah Allen 1edbf7ffa4 Add local events support 2018-11-01 09:31:53 -04:00
Micah Allen 324764f346 Add package.json 2018-11-01 08:50:33 -04:00