Commit Graph
64 Commits
Author SHA1 Message Date
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 4a08c2cbf7 0.3.2 2019-11-02 15:12:42 -04:00
micah 206836248d Revert parameter changes for call options 2019-11-02 15:11:02 -04:00
micah 47430492e6 0.3.1 2019-10-31 18:20:21 -04:00
Micah Allen 98e0918c8e Merge pull request #10 from xzessmedia/master
broken default param fix
2019-10-31 18:15:04 -04:00
Tim Koepsel 528abb73a4 broken default param fix 2019-10-23 01:28:24 +02:00
Micah Allen 88a140e897 Update README.md 2019-06-02 16:46:47 -04:00
Micah Allen e4d0b43df7 Update README.md 2019-06-02 16:17:50 -04:00
micah 957522e4d9 0.3.0 2019-06-02 14:47:57 -04: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
Micah Allen 14fda2a895 Merge pull request #7 from Yiin/patch-3
Add default export
2019-04-02 19:59:01 -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
Micah Allen 465c6cc732 Merge pull request #6 from Yiin/patch-2
Allow user to specify type of returned values
2019-03-29 18:41:57 -04:00
Yiin 37309e3204 Allow user to specify type of returned values 2019-03-30 00:37:43 +02:00
Micah Allen 1dc43b87be Merge pull request #5 from Yiin/patch-1
Persist browserId between page reloads.
2019-03-20 22:57:49 -04: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
Micah Allen 7c9fe21a44 Merge pull request #4 from pavlov3317/fix/escape-quotes
Duh!! How did I overlook this?? I knew regex wasn't the way to do it haha!

This looks great and passed all of my tests. Nice job!
2019-03-09 17:17:24 -05:00
pavlov3317 48afea0bd1 handle quote escaping by stringifier instead manual handling 2019-03-09 17:33:55 +05:00
micah e266152342 0.2.0 2019-03-06 15:02:17 -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 4637d668b5 Update development dependencies 2019-03-06 11:42:46 -05:00
micah 25991acf92 0.1.3 2019-03-06 11:35:39 -05:00
micah a1299c25b4 Fix single quotes in CEF events (#2) 2019-03-06 11:34:05 -05:00
micah 7ccb10630a 0.1.2 2019-02-11 00:12:17 -05:00
micah b1fd6fea4d Add hack to fix RAGE promise bug 2019-02-11 00:07:13 -05:00
Micah Allen 50486ec049 Merge remote-tracking branch 'origin/master' 2019-02-02 20:46:17 -05:00
Micah Allen f724e9dc91 Fix RAGE client-side export definition 2019-02-02 20:46:00 -05:00
Micah Allen 8a9e10df37 Update README.md 2019-01-12 13:21:15 -05:00
Micah Allen ce551c2afe 0.1.0 2019-01-12 13:09:46 -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 65241d1c07 Add Changelog to README 2018-11-05 10:20:59 -05:00
Micah Allen 6ec5e95926 Update to version 0.0.3 and build 2018-11-05 10:12: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 ab75af3697 Add table of contents 2018-11-02 13:27:29 -04:00
Micah Allen 845a910117 Add API documentation 2018-11-02 13:18:45 -04:00
Micah Allen a0e54ebd2f Update README.md 2018-11-02 03:02:10 -04:00
Micah Allen 339c9926e2 Change version to 0.0.2 2018-11-02 01:30:14 -04:00
Micah Allen e195e519de Fix UMD exposing 2018-11-02 01:29:47 -04: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