pastleo / bazaar

https://bazaar-pre.pastleo.me/
MIT License
9 stars 1 forks source link

Refactor RTC connection-v2, related #17 #18

Open qas612820704 opened 5 years ago

qas612820704 commented 5 years ago

How to run example

Installtion

$ yarn install

Get Started

  1. Run node server

    DEBUG="bazaar:*" node server
  2. Open web_client/lib/bazaar-connection/test/index.html

pastleo commented 5 years ago

Screenshot_20190606_102750

還是要用 https://github.com/pastleo/bazaar/pull/4 有些東西還是 commonjs 不是給 browser 用的得包一下

qas612820704 commented 5 years ago

I use uuid-browser (https://www.npmjs.com/package/uuid-browser).

It supposes to be used in that way. In my scenario, it does not raise a CORS policy issue.


Or maybe we can use faker instead to generate id?

qas612820704 commented 5 years ago

Oh, I only use uuid to generate event id.

How about afef9ea, by using Date.now() instead.

qas612820704 commented 5 years ago

By 9af2680,

Id is generated by a count generator.