File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -190,19 +190,6 @@ await ws.writeCard(0, {
190190});
191191```
192192
193- ### Browser (CDN)
194-
195- ``` html
196- <script src =" https://unpkg.com/@simplyprint/nfc-agent" ></script >
197- <script >
198- const ws = new NFCAgent.WebSocket ();
199- ws .connect ().then (() => {
200- ws .subscribe (0 );
201- ws .on (' card_detected' , (e ) => console .log (' Card:' , e .card .uid ));
202- });
203- </script >
204- ```
205-
206193See the full [ SDK documentation] ( sdk/README.md ) for more examples.
207194
208195## Building from Source
Original file line number Diff line number Diff line change @@ -182,23 +182,6 @@ const health = await ws.health();
182182console .log (' Status:' , health .status );
183183```
184184
185- ### Browser (CDN)
186-
187- ``` html
188- <script src =" https://unpkg.com/@simplyprint/nfc-agent" ></script >
189- <script >
190- const ws = new NFCAgent.WebSocket ();
191-
192- ws .connect ().then (async () => {
193- await ws .subscribe (0 );
194-
195- ws .on (' card_detected' , (event ) => {
196- console .log (' Card:' , event .card .uid );
197- });
198- });
199- </script >
200- ```
201-
202185---
203186
204187## REST API
You can’t perform that action at this time.
0 commit comments