example.tsx
1import chaos from 'chaosocket';
2
3chaos.register(() => {
4 return {
5 type: 'connection',
6 user: {
7 name: 'Hector'
8 }
9 };
10});
11
12chaos.listen();