Typically, js-dos bundle contains everything needed to run DOS program in a browser, including game files. This creates a straightforward and effective way to run and share dos programs.
Some games, especially designed for Windows, can be huge. They easily take up to gigabytes on HDD drive. In that case, packaging game files into a bundle is no sense, resulting bundle will be big to download and can reach the memory limit of browser in runtime.
Especially for such intergations, sockdrive was designed.
Remote HDD drives
sockdrive is like a remote hdd drive for DOSBox. You can connect it to DOSBox-X with command:
imgmount N sockdrive wss://sockdrive.js-dos.com:8001 <owner> <drive>
N - is a drive number (2 is C:, 3 is D:).
sockdrive - is a keyword, must present, otherwise imgmount will not understand the command
wss://... - address of sockdrive backend
owner - is a token of drive owner (usually the same as an email that was used for subscription)
drive - is a drive name
Diablo I in browser
js-dos player with sockdrive integration is absolutely the same as for bundles. But instead of mounting FS as drive C:, you should mount sockdrive. In the case of diablo: