Skip to content

Instantly share code, notes, and snippets.

@mikef-dk
mikef-dk / CustomSocketIoClient.kt
Last active July 31, 2020 14:15
Custom implementation of Scarlets' SocketIoClient but solves the following two issues: https://github.com/Tinder/Scarlet/issues/89 and https://github.com/Tinder/Scarlet/issues/145
import com.tinder.scarlet.*
import com.tinder.scarlet.socketio.SocketIoEvent
import com.tinder.scarlet.utils.SimpleChannelFactory
import com.tinder.scarlet.utils.SimpleProtocolOpenRequestFactory
import io.socket.client.IO
import io.socket.client.Socket
import org.json.JSONArray
import org.json.JSONObject
class CustomSocketIoClient(
@mikef-dk
mikef-dk / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console