socket-oss

Socket oss

Usage no npm install needed!

<script type="module">
  import socketOss from 'https://cdn.skypack.dev/socket-oss';
</script>

README

socket-oss

Socket oss

// client

import {Client} from 'socket-oss';

const client = new Client(socket);
client.upload(file); // => Promise<string>

// server

import {Server} from 'socket-oss';

new Server(ioServer, {
  // ali oss
  region: '',
  accessKeyId: '',
  accessKeySecret: '',
  bucket: '',
});

License

MIT License.